1. Accessing the Configuration Area
In the Cortex XDR main menu, click on the Configurations section on the left. From there, open Integrations → API Keys. In this area, you can view previously created API keys.
2. Creating a New API Key
Click the New Key button at the top right. The Generate API Key screen will appear. Configure the following settings:
Security Level
Select Standard. This option makes the API key usable as-is, which is especially suitable for curl, Postman, and SIEM integrations. The Advanced option provides additional protection against replay attacks but requires extra hashing and timestamp handling. At this stage, it’s not needed.
Role
Select Viewer. This role only allows read/authorized viewing. For adding sources, data manipulation, or deletion, a higher role may be required, but for log/alert retrieval, Viewer is sufficient.
3. Authorization and Component Selection
Configure permissions in the Components section. Set Incident Response → Alerts & Incidents to View. This allows SIEM or external systems to read incidents and alerts from Cortex XDR. Leave all other components at their default (None) since only alert/log retrieval is needed.
You can obtain the XDR Auth ID from the screen that appears after creating the API key.
Afterwards, log in to Logsign USO and add the source using the information you have obtained.
When entering the Host field, do not include the https:// part. You need to enter the URL directly and clearly.
As an example, it must be written directly in this way.
api-te.xdr.eu.paloaltonetworks.com
4. Event Classification
Logsign reads three Cortex XDR streams:
- Alerts (
/public_api/v1/alerts/get_alerts) - Incidents (
/public_api/v1/incidents/get_incidents) - Management audit logs (
/public_api/v1/audits/management_logs)
Logsign gives each record an event map (EventMap.Context, EventMap.Type, EventMap.SubType) from its stream and from the Cortex XDR field values in the record. The tables below show the result. The name in parentheses is the EventMap.Info value. You can use these values in searches, alarms, and reports. Field values are compared without regard to upper or lower case.
Alerts
For alerts, Logsign uses the source, category and action_pretty fields. If action_pretty starts with "Prevented", the alert is a prevented alert. All other alerts, including alerts without action_pretty, are detected alerts.
Logsign checks the rows from top to bottom. The first row that matches the alert sets the event map. Rows for a specific source come first. Rows for a category apply to alerts from any source.
| Source | Category | Prevented alert | Detected alert |
|---|---|---|---|
| PAN NGFW | Vulnerability | Security / Intrusion Prevention / Block (Intrusion Prevention Block) | Security / Intrusion Prevention / Info (Intrusion Prevention Detection) |
| PAN NGFW | URL Filtering, Phishing | Security / URL / Block (Web Access Block) | Next rows apply |
| XDR IOC | Any | Security / Reputation / Block (Reputation Block) | Security / Reputation / Info (Reputation Info) |
| Any | Malware, Ransomware, Dropper | Security / Malware / Block (Malware Block) | Security / Malware / Detect (Malware Detect) |
| Any | Exploit | Security / Attack / Block (Attack Block) | Security / Exploit / Detect (Exploit Detect) |
| Any | Virus, WildFire | Security / Virus / Block (Virus Block) | Security / Virus / Detect (Virus Detect) |
| Any | Device Control | Security / Device / Block (Device Block) | Security / Device / Detect (Device Detect) |
| Any | Command and Control, Initial Access, Execution, Persistence, Privilege Escalation, Defense Evasion, Lateral Movement, Collection, Impact | Security / Threat / Block (Potential Threat Blocked) | Security / Suspicious Behavior / Detect (Suspicious Behavior Detect) |
| Any | Spyware | Security / Spyware / Detect (Spyware Detect) | |
| Any | Phishing | Security / Phishing / Info (Phishing Info) | |
| Any | Vulnerability | Security / Vulnerability / Detect (Vulnerability Detect) | |
| Any | Credential Access | Security / BruteForce / Detect (Brute Force Detect) | |
| Any | Reconnaissance, Discovery | Security / Scan / Detect (Scan Detect) | |
| Any | Exfiltration | Security / DLP / Detect (DLP Detect) | |
| Any | Any other category | Security / Threat / Block (Potential Threat Blocked) | Security / Threat / Info (Potential Threat Detected) |
For example, a PAN NGFW alert with category Vulnerability and an action_pretty value that starts with "Prevented" gets Security / Intrusion Prevention / Block. The same category from an XDR Agent alert gets Security / Vulnerability / Detect.
Incidents
All incidents get Security / Incident / Info (Incident Info).
Management audit logs
For management audit logs, Logsign uses the AUDIT_ENTITY and AUDIT_RESULT fields. The first row that matches the record sets the event map.
| AUDIT_ENTITY | AUDIT_RESULT | Event map |
|---|---|---|
| AUTH | SUCCESS | Identity / User / Login (User Successful Login) |
| AUTH | FAIL | Identity / User / Deny (User Login Deny) |
| PERMISSIONS | Any | System / Role / Change (Role Change) |
| RULES, RULES_EXCEPTIONS, ALERT_RULES, ALERT_EXCLUSION, ALERT_WHITELIST, GLOBAL_EXCEPTIONS, INDICATOR_RULES, SCORING_RULES, AUTOMATION_RULES | Any | System / Rule / Change (Rule Change) |
| PROTECTION_POLICY, POLICY_RULES, POLICY_PROFILES, PROTECTION_PROFILES, HOST_FIREWALL_PROFILE, HOST_DISK_ENCRYPTION_PROFILE, AGENT_CONFIGURATION | Any | System / Policy / Change (Policy Change) |
| RESPONSE, LIVE_TERMINAL, SCRIPT_EXECUTION, ACTION_CENTER, REMEDIATION | Any | System / Command / Info (Command Info) |
| INCIDENT_MANAGEMENT, ALERT_MANAGEMENT, INCIDENT_TIMELINE_EVENT, STARRED_INCIDENTS | Any | Security / Incident / Info (Incident Info) |
| LICENSING | Any | System / License / Info (Licence Info) |
| API_KEY, PUBLIC_API, SECURITY_SETTINGS, SERVER_SETTINGS, TENANT_CONFIGURATION, INTEGRATIONS, COLLECTION, EVENT_FORWARDING, BROKER_VM, BROKER_API, DATASETS, CUSTOM_FIELDS | Any | System / Configuration / Change (Config Change) |
| Any other entity, or AUTH with any other result | Any | System / Operation / Info (System Operation Info) |
Default value
Each stream has a last row that catches all other records, so every alert, incident and audit record gets one of the values above. A record that matches no row gets the default Application / Other / Info (Other Application Info).