human-readable key name
a promise resolving to an object containing the log api key and secret
Creates a stateful, deduped consumer of tail() -- everything a caller
doing a live polling loop (e.g. an interactive follow-style view) needs
without reimplementing cookie-tracking or dedup itself.
log source(s) to tail
a stream object with a poll() method
PingOne AIC's own tail-endpoint documentation is explicit that each
subsequent call's range "starts from the last returned log entry in
the previous result (inclusive)" -- the boundary event is
documented to repeat by design, and the endpoint returns no unique
event id at all to tell repeats apart with (confirmed live: unlike
fetch(), whose results do carry _id). A real live poll loop against
am-authentication also showed tail() redeliver a whole earlier
batch verbatim -- sometimes even within one poll's own result array,
not just across a cookie boundary -- so this dedupes broadly by event
content, not merely by skipping one known boundary event.
Delete log api key
key id
a promise resolving to an object containing the log api key
Delete all log api keys
a promise resolving to an array of log api key objects
Fetch logs
log source(s) to tail
start timestamp
end timestamp
paged results cookie
transaction id
query filter
promise resolving to paged log event result
Get default noise filter
array of default event types and loggers to be filtered out
Get log api key
key id
promise resolving to a LogApiKey objects
Get available log sources
promise resolving to an array of available log sources
Validate log api key and secret
log api key id
log api secret
a promise resolving to true if the key is valid, false otherwise
Resolve log level to an array of effective log levels
string or numeric log level: 'FATAL', 'ERROR', 'WARN', 'INFO', 'DEBUG', 'TRACE', 'ALL', 0, 1, 2, 3, 4
array of effective log levels
Search audit events by event name(s) and/or principal, across the full time range (auto-paginating), with client-side dedup by transaction id.
log source(s) to search, e.g. am-authentication
start timestamp
end timestamp
OptionaleventNames: string[]optional event names to match (OR'd together server-side)
Optionalprincipal: stringoptional principal substring to match against payload.userId (co)
OptionalmaxEvents: numbersafety cap on total events fetched across pages
OptionaldedupeByTransactionId: booleancollapse multiple events sharing a transaction id (e.g. a failed-then-successful retry) down to the last one seen; default true
promise resolving to the matched (and optionally deduped) events
Tail logs
log source(s) to tail
paged results cookie
promise resolving to paged log event result
Create log api key