How to call SIEM Audit APIs in Bruno

How to call SIEM Audit APIs in Bruno

89
Created On 11/10/26 10:57 AM - Last Modified 11/10/26 15:54 PM


Objective


This is a step-by-step guide to enable calling Audit APIs in Bruno to integrate Audit with third-party SIEM applications 



Environment


25.6;25.7;25.8;25.9 Identity

Procedure


  1. Go to the Administration space.
  2. Select Audit, SIEM Integrations.
  3. Click Create, and select Create SIEM integration.

 

The following screen will pop up:

Follow step 1 to create an OAuth2 server webapp, set ApplicationID and name.

 

A screenshot of a computerAI-generated content may be incorrect.

2 - Make sure to enter the scope.

A screenshot of a computerAI-generated content may be incorrect.

3 - Set token as follows (lifetime depends on your testing needs)

A screenshot of a computerAI-generated content may be incorrect.

 

  1. Edit the advanced script and SAVE:

A screenshot of a computerAI-generated content may be incorrect.

 

5. Create a SIEM service user:

A screenshot of a computerAI-generated content may be incorrect.

 

  1. Grant permission to the service user:

A screenshot of a computerAI-generated content may be incorrect.

 

7 - Name the SIEM integration and Apply

A screenshot of a computerAI-generated content may be incorrect.

8 - Now you will get the API key/endpoint:

A screenshot of a computerAI-generated content may be incorrect.

Now we have all the needed information to work with Bruno.

 

The first part will be generating an access token:

We will run {{tenant_url}}/oauth2/Token/GilSiemServer (this is our application id from step1)

You need to fill in the following fields:

 

A screenshot of a computerAI-generated content may be incorrect.

Then we enter the user and password that we have created (can enter manually or via the environment)

A screenshot of a computerAI-generated content may be incorrect.

When entered correctly, we will get an access token, which we use in the next step.

A screenshot of a computerAI-generated content may be incorrect.

When the parameters do not match, you will get access denied:

A screenshot of a computerAI-generated content may be incorrect.

Once we have the access token, we proceed with the following endpoint, create a reference point, and query:

A screenshot of a computerAI-generated content may be incorrect. A screenshot of a computerAI-generated content may be incorrect.

Make sure to insert your correct api base URL (siem_url in the screenshot) and x-api-key, copied from step 8 c and d

 

Enter the access token that you got from the previous step.

A screenshot of a computerAI-generated content may be incorrect.

In case the access token was wrongly inserted or is not valid, you will get :

"code": "401",

  "message": "Unauthorized",

  "description": "Unauthorized"

When all parameters are correct, you will receive a reference string  ("cursorRef") to use in the result endpoint in next stepA screenshot of a computerAI-generated content may be incorrect.

 Next, we will extract the query results - {{siem_url}}/api/audits/stream/results

Insert reference, access token, and x-api-key as follows.

A screenshot of a computerAI-generated content may be incorrect.

A screenshot of a computerAI-generated content may be incorrect.

When running this endpoint, you will get all the audit results.

Below is an example for an event appearance on both the Bruno and Cyberark Audit space  

A screenshot of a computerAI-generated content may be incorrect.

 



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000uNDCAY&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail