Audit
Overview
Returns the audit events matching the request.
Pre-requisites
In order to successfully use this endpoint, the role assigned to the app must have at least the following level of application permissions granted: Account | Logs | Read.
The page size should be provided in the meta pagination, otherwise the default is 10.
Configuration
Parameters
Domain (
domain)
Secrets
Client Id (
client_id)Client Secret (
client_secret)
Open the Secret fields and click New secret to create a new one:
Give the secret a Name.
Turn off the Expiration date option.
Click Add new value and paste the secret corresponding to the value.
Click Save.


Learn more about secrets in Onum in this article.
You can now select the secret you just created in the corresponding fields.
After entering the required parameters and secrets, you can choose to manually enter the fields, or simply paste the given YAML:
Toggle this ON to enable a free text field where you can paste your YAML.
Temporal Window
Toggle ON to add a temporal window for events. This repeatedly shifts the time window over which data is collected.
Duration - 1 minute
Offset - initial offset should be
1mFormat -
RFC3339
Authentication Phase
Toggle ON to set the Authentication settings.
Type* -
tokenRequest Method* -
POSTURL* -
https://${parameters.domain}/oauth/tokenHeaders
Name -
Content-typeValue -
application/x-www-form-urlencodedName -
AcceptValue -
application/json
BodyType* -
UrlEncodedBody params
Name -
client_idValue -
${secrets.client_id}Name -
client_secretValue -
${secrets.client_secret}Name -
grant typeValue -
client_credentials
Token Path* -
.access_tokenAuth Injection
In* -
headerName* -
authorizationPrefix -
BearerSuffix -
''
Enumeration Phase
OFF
Collection Phase
Pagination Type* -
cursorCursor Selector* -
.meta.pagination.nextInitial Request
Method* -
GETURL* -
https://${parameters.domain}/api/audit/get-audit-eventsHeaders -
Name -
AcceptValue -
application/jsonName -
Content-TypeValue -
application/json
Body -
rawraw
| { "data": [ { "startDateTime":"${temporalWindow.from}", "endDateTime":"${temporalWindow.to}" } ], "meta": { "pagination": { "pageSize": 500, } } }
Next Request
Method* -
POSTURL* -
https://${parameters.domain}/api/audit/get-audit-eventsHeaders -
Name -
AcceptValue -
application/jsonName -
Content-TypeValue -
application/json
Body -
rawraw
| { "data": [ { "startDateTime":"${temporalWindow.from}", "endDateTime":"${temporalWindow.to}" } ], "meta": { "pagination": { "pageToken": "${pagination.cursor}", "pageSize": 500, } } }
Output
Select -
.dataMap -
.Output Mode -
element
This HTTP Pull Listener now uses the data export API to extract audit events.
Click Create labels to move on to the next step and define the required Labels if needed.
Last updated
Was this helpful?

