Integrations
Okta
APIs
Get Logs

Get Logs (Okta)

Retrieve a list of system log events events from Okta.

For more information on the API for listing system log events, see List all System Log Events (opens in a new tab).

SDK Import:

from admyral.actions import get_okta_logs

Arguments:

Argument NameDescriptionRequired
Query queryFilter log events by specified keywords. Example: policy.lifecycle.update Password-
Start Time start_timeThe start time for the events to list. Must be in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).-
End Time end_timeThe end time for the events to list. Must be in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).-
Limit limitThe maximum number of events to retrieve. Default: 1000-

Returns

A JSON array of events.

Required Secrets

Secret PlaceholderDescription
OKTA_SECRETOkta secret. See Okta setup

SDK Example

events = get_okta_logs(
	secrets={"OKTA_SECRET": "my_stored_okta_secret"}
)