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 Name | Description | Required |
---|---|---|
Query query | Filter log events by specified keywords. Example: policy.lifecycle.update Password | - |
Start Time start_time | The start time for the events to list. Must be in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ). | - |
End Time end_time | The end time for the events to list. Must be in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ). | - |
Limit limit | The maximum number of events to retrieve. Default: 1000 | - |
Returns
A JSON array of events.
Required Secrets
Secret Placeholder | Description |
---|---|
OKTA_SECRET | Okta secret. See Okta setup |
SDK Example
events = get_okta_logs(
secrets={"OKTA_SECRET": "my_stored_okta_secret"}
)