Collect data from Prisma Cloud
Overview
Get a list of all audit logs. Retrieves paginated audit logs based on the provided filter criteria.
Configuration
Parameters
Name - Domain
Value - PrismaCloudEndpoint
Secrets
PrismaCloudAccessKeyIdcorresponds to the authorization Access Key ID number.PrismaCloudAccessKeySecretcorresponds to the Access Key itself.


To add a Secret, open the Secret fields and click New secret:
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 Cortex incident Management fields, or simply paste the given YAML:
Toggle this ON to enable a free text field where you can paste your Cortex XDR API YAML.
Temporal Window
Toggle ON to add a temporal window for events. This repeatedly shifts the time window over which data is collected.

Authentication Phase
Type -
tokenRequest -
Method -
POSTURL -
${parameters.PrismaCloudEndpoint}/loginHeaders
Name - Content-Type
Value -
application/json
Body Type -
rawBody Raw -
| { "username": "${secrets.PrismaCloudAccessKeyId}", "password": "${secrets.PrismaCloudAccessKeySecret}" }Response Type -
json
Token Path -
.tokenAuth injection
Name -
AuthorizationIn -
headerPrefix -
Bearer
Enumeration Phase
Off
Collection Phase
Pagination Type* -
cursorCursor* -
.nextPageTokenCursor Selector -
.nextPageTokenInitial Request
Method* -
POSTURL* -
${parameters.PrismaCloudEndpoint}/audit/api/v1/logHeaders
Name - Accept
Value -
application/jsonName - Content-Type
Value -
application/json
Response Type* -
jsonBody type* - raw
Body content* -
{ "timeRange": { "type": "absolute", "value": { "startTime": ${temporalWindow.from}, "endTime": ${temporalWindow.to}, } } }
Next Request
Method* -
POSTURL* -
${parameters.PrismaCloudEndpoint}/audit/api/v1/logHeaders
Name - Accept
Value -
application/jsonName - Content-Type
Value -
application/json
Response Type* -
jsonBody type* - raw
Body content* -
|{ "timeRange": { "type": "absolute", "value": { "startTime": ${temporalWindow.from}, "endTime": ${temporalWindow.to}, } }, "nextPageToken": ${pagination.cursor} }
Output
Select -
.valueMap -
.Output Mode -
element
This HTTP Pull Listener now uses the data export API to extract audit logs.
Click Create labels to move on to the next step and define the required Labels if needed.
Last updated
Was this helpful?

