# Paloalto Cortex XDR dashboard into Grafana?

**URL:** <https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826>\
**Category:** Configuration\
**Tags:** cortex, api\
**Created:** [April 8, 2024, 9:28am UTC](https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826 "2024-04-08T09:28:27Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![xdr1984](https://avatars.discourse-cdn.com/v4/letter/x/9f8e36/32.png) [@xdr1984](https://community.grafana.com/u/xdr1984)\
**Post date:** [April 8, 2024, 9:28am UTC](https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826/1 "2024-04-08T09:28:27Z")

</div>

Hello, I don’t know if I’m in the right place…

I would like to integrate our Cortex XDR dashboard into Grafana. I know this is possible via an API, but which connection do I choose in Grafana? ‘Websocket API’?

Have somebody already done that? Are there instructions for this?

Basically I would like to create a dashboard in Grafana that shows the incidents from XDR.

It would be nice if someone could help me. Thanks.

---

<div class="post-metadata">

**Author:** ![sowdenraymond](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/sowdenraymond/32/59065_2.png) [@sowdenraymond](https://community.grafana.com/u/sowdenraymond)\
**Post date:** [April 8, 2024, 9:32am UTC](https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826/2 "2024-04-08T09:32:11Z")

</div>

check the infinity datasource plugin, it allows you to connect to an api, and render the results in grafana

[https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-API-Reference/Get-Started-with-APIs](https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-API-Reference/Get-Started-with-APIs)

---

<div class="post-metadata">

**Author:** ![xdr1984](https://avatars.discourse-cdn.com/v4/letter/x/9f8e36/32.png) [@xdr1984](https://community.grafana.com/u/xdr1984)\
**Post date:** [April 8, 2024, 1:09pm UTC](https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826/3 "2024-04-08T13:09:24Z")

</div>

OK thanks. I have just generated the API key in Cortex XDR as an ‘Advanced-Key’.  
Now I don’t know how I can integrate the whole thing as data sources in the ‘Infinity Datasource Plugin’. Which authentication type do I have to select there??

I defined the role for the API key in Cortex-XDR as a viewer, is that correct?

Can you maybe help me with that???

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [April 8, 2024, 2:17pm UTC](https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826/4 "2024-04-08T14:17:45Z")

</div>

Check the docu out

> **[Authentication | Grafana Enterprise plugins documentation](https://grafana.com/docs/plugins/yesoreyeram-infinity-datasource/latest/setup/authentication/)**
>
> Authentication options of Infinity datasource plugin

---

<div class="post-metadata">

**Author:** ![xdr1984](https://avatars.discourse-cdn.com/v4/letter/x/9f8e36/32.png) [@xdr1984](https://community.grafana.com/u/xdr1984)\
**Post date:** [April 8, 2024, 2:27pm UTC](https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826/5 "2024-04-08T14:27:58Z")

</div>

There are 11 different authentication options.  
I assume that I have to set up the “Basic Authentication” and the “Bearer Token” mode, right?  
Can you please explain to me in more detail.

Thanks

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [April 8, 2024, 3:33pm UTC](https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826/6 "2024-04-08T15:33:49Z")

</div>

Depends what authentication Cortex offers

With token infinity is limited if it needs to be refreshed often

---

<div class="post-metadata">

**Author:** ![xdr1984](https://avatars.discourse-cdn.com/v4/letter/x/9f8e36/32.png) [@xdr1984](https://community.grafana.com/u/xdr1984)\
**Post date:** [April 9, 2024, 5:04am UTC](https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826/7 "2024-04-09T05:04:22Z")

</div>

morning, I created the token using these instructions: [Palo Alto Networks documentation portal](https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-API-Reference/Get-Started-with-APIs) .  
I created an “Advanced-Security Level” token and the role would be “Viewer”  
Do I then only need the token to integrate with Grafana?

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [April 11, 2024, 11:34am UTC](https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826/8 "2024-04-11T11:34:42Z")

</div>

Does the palo alto token require refresh ttl

---

<div class="post-metadata">

**Author:** ![xdr1984](https://avatars.discourse-cdn.com/v4/letter/x/9f8e36/32.png) [@xdr1984](https://community.grafana.com/u/xdr1984)\
**Post date:** [April 12, 2024, 7:56am UTC](https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826/9 "2024-04-12T07:56:57Z")

</div>

unfortunately I don’t know

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [April 12, 2024, 7:56pm UTC](https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826/10 "2024-04-12T19:56:01Z")

</div>

so now you can implement the endpoint using the data source and the details for token etc. But before using it withing grafana I would vet out this rest api endpoint from paloalto using `curl` or tools like `postman` or `insomnia` or `thunderclient` to see if it works.

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/e/4/e47b74fcfda14fdb5eab5a6d4b7ef30f778f48f8.png)

---

<div class="post-metadata">

**Author:** ![xdr1984](https://avatars.discourse-cdn.com/v4/letter/x/9f8e36/32.png) [@xdr1984](https://community.grafana.com/u/xdr1984)\
**Post date:** [April 15, 2024, 1:51pm UTC](https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826/11 "2024-04-15T13:51:02Z")

</div>

hi, now I was finally able to establish the connection.  
I would like to create the same representation of the incidents as in Cortex XDR in Grafana, but unfortunately I can’t get any further here.

You can see what I managed in the pictures.

 ![1](https://us1.discourse-cdn.com/grafana/original/3X/0/7/07fd1d8645f02d7d8adb25c32535f5267eab9db4.png)

 ![2](https://us1.discourse-cdn.com/grafana/original/3X/7/5/75df8fbc738ad2ce294ec821f6033c3216cccc7d.png)

I would like to recreate something like that:

 ![Cotex-xdr-Dashboard](https://us1.discourse-cdn.com/grafana/original/3X/1/1/11c8b95744d3478d1cccc595d7cece011ae29315.png)  
How can I create something like that?

Thanks

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [April 15, 2024, 3:21pm UTC](https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826/12 "2024-04-15T15:21:01Z")

</div>

Please post the actual text of the data result (json) and not a tiny image of it?

---

<div class="post-metadata">

**Author:** ![xdr1984](https://avatars.discourse-cdn.com/v4/letter/x/9f8e36/32.png) [@xdr1984](https://community.grafana.com/u/xdr1984)\
**Post date:** [April 16, 2024, 5:41am UTC](https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826/13 "2024-04-16T05:41:31Z")

</div>

Good morning,  
Here is the data result (I shortened it a bit, so not 33) in json from postman.

```auto
{
    "reply": {
        "total_count": 33,
        "result_count": 33,
        "incidents": [
            {
                "incident_id": "30",
                "incident_name": null,
                "creation_time": 1712756171234,
                "modification_time": 1712914085414,
                "detection_time": null,
                "status": "resolved_known_issue",
                "severity": "high",
                "description": "'Keylogger - 2577420806' generated by XDR Agent detected on host nb3230 involving user xxx-xx\\ina",
                "assigned_user_mail": "xxx@xxx.xxx",
                "assigned_user_pretty_name": "ansler OPT-1",
                "alert_count": 1,
                "low_severity_alert_count": 0,
                "med_severity_alert_count": 0,
                "high_severity_alert_count": 1,
                "critical_severity_alert_count": 0,
                "user_count": 1,
                "host_count": 1,
                "notes": null,
                "resolve_comment": null,
                "resolved_timestamp": 1712914085414,
                "manual_severity": null,
                "manual_description": null,
                "xdr_url": "https://xxxxxxx.paloaltonetworks.com/incident-view?caseId=30",
                "starred": false,
                "starred_manually": false,
                "hosts": [
                    "nb3230:x9fe47b26d75446f2b96f91551c27bbebe"
                ],
                "users": [
                    "xxx-xx\\ina"
                ],
                "incident_sources": [
                    "XDR Agent"
                ],
                "rule_based_score": null,
                "predicted_score": 21,
                "manual_score": null,
                "aggregated_score": null,
                "wildfire_hits": 0,
                "alerts_grouping_status": "Disabled",
                "mitre_tactics_ids_and_names": [
                    "TA0006 - Credential Access",
                    "TA0009 - Collection"
                ],
                "mitre_techniques_ids_and_names": [
                    "T1056.001 - Input Capture: Keylogging"
                ],
                "alert_categories": [
                    "Malware"
                ],
                "original_tags": [
                    "DS:PANW/XDR Agent"
                ],
                "tags": [
                    "DS:PANW/XDR Agent"
                ]
            },
            {
                "incident_id": "33",
                "incident_name": null,
                "creation_time": 1712843261308,
                "modification_time": 1712843261308,
                "detection_time": null,
                "status": "new",
                "severity": "low",
                "description": "'Large Upload (Generic)' generated by XDR Analytics detected on host nb3362 involving user xxx-xx\\sif",
                "assigned_user_mail": null,
                "assigned_user_pretty_name": null,
                "alert_count": 1,
                "low_severity_alert_count": 1,
                "med_severity_alert_count": 0,
                "high_severity_alert_count": 0,
                "critical_severity_alert_count": 0,
                "user_count": 1,
                "host_count": 1,
                "notes": null,
                "resolve_comment": null,
                "resolved_timestamp": null,
                "manual_severity": null,
                "manual_description": null,
                "xdr_url": "https://xxxxxxx.paloaltonetworks.com/incident-view?caseId=30",
                "starred": false,
                "starred_manually": false,
                "hosts": [
                    "nb3362:x57b863ac72f84cax3b87be4f9313c771f7"
                ],
                "users": [
                    "xxx-xx\\sif"
                ],
                "incident_sources": [
                    "XDR Analytics"
                ],
                "rule_based_score": null,
                "predicted_score": 5,
                "manual_score": null,
                "aggregated_score": null,
                "wildfire_hits": 0,
                "alerts_grouping_status": "Enabled",
                "mitre_tactics_ids_and_names": [
                    "TA0010 - Exfiltration"
                ],
                "mitre_techniques_ids_and_names": [
                    "T1048 - Exfiltration Over Alternative Protocol"
                ],
                "alert_categories": [
                    "Exfiltration"
                ],
                "original_tags": [
                    "DS:PANW/XDR Agent"
                ],
                "tags": [
                    "DS:PANW/XDR Agent"
                ]
            },
            {
                "incident_id": "32",
                "incident_name": null,
                "creation_time": 1712824031673,
                "modification_time": 1712824031673,
                "detection_time": null,
                "status": "new",
                "severity": "low",
                "description": "'Suspicious port scan' generated by XDR Analytics detected on host nb3314 involving user xxx-xx\\kne",
                "assigned_user_mail": null,
                "assigned_user_pretty_name": null,
                "alert_count": 1,
                "low_severity_alert_count": 1,
                "med_severity_alert_count": 0,
                "high_severity_alert_count": 0,
                "critical_severity_alert_count": 0,
                "user_count": 1,
                "host_count": 1,
                "notes": null,
                "resolve_comment": null,
                "resolved_timestamp": null,
                "manual_severity": null,
                "manual_description": null,
                "xdr_url": "https://xxxxxxx.paloaltonetworks.com/incident-view?caseId=30",
                "starred": false,
                "starred_manually": false,
                "hosts": [
                    "nb3314:5b04fxdb5cb3d45378d465992374d4b5ed4d0"
                ],
                "users": [
                    " xxx-xx\\kne"
                ],
                "incident_sources": [
                    "XDR Analytics"
                ],
                "rule_based_score": null,
                "predicted_score": 5,
                "manual_score": null,
                "aggregated_score": null,
                "wildfire_hits": 0,
                "alerts_grouping_status": "Enabled",
                "mitre_tactics_ids_and_names": [
                    "TA0007 - Discovery"
                ],
                "mitre_techniques_ids_and_names": [
                    "T1046 - Network Service Discovery"
                ],
                "alert_categories": [
                    "Discovery"
                ],
                "original_tags": [
                    "DS:PANW/XDR Agent"
                ],
                "tags": [
                    "DS:PANW/XDR Agent"
                ]
            },
			{
                "incident_id": "5",
                "incident_name": null,
                "creation_time": 1706799303286,
                "modification_time": 1707317797038,
                "detection_time": null,
                "status": "resolved_false_positive",
                "severity": "medium",
                "description": "'Local Analysis Malware' generated by XDR Agent detected on host nb3182 involving user xxx-xx\\eig",
                "assigned_user_mail": "xxx@xxx.com",
                "assigned_user_pretty_name": "xxxx",
                "alert_count": 1,
                "low_severity_alert_count": 0,
                "med_severity_alert_count": 1,
                "high_severity_alert_count": 0,
                "critical_severity_alert_count": 0,
                "user_count": 1,
                "host_count": 1,
                "notes": null,
                "resolve_comment": "TimeAs Zeiterfassung wird benötigt (Allow list)",
                "resolved_timestamp": 1707317797038,
                "manual_severity": null,
                "manual_description": null,
                "xdr_url": "https://xxxxxxx.paloaltonetworks.com/incident-view?caseId=30",
                "starred": false,
                "starred_manually": false,
                "hosts": [
                    "nb3182:6e7eb89e32d2945de5ba99fffe2743012f"
                ],
                "users": [
                    "xxx-xx\\eig"
                ],
                "incident_sources": [
                    "XDR Agent"
                ],
                "rule_based_score": null,
                "predicted_score": null,
                "manual_score": null,
                "aggregated_score": null,
                "wildfire_hits": 0,
                "alerts_grouping_status": "Disabled",
                "mitre_tactics_ids_and_names": null,
                "mitre_techniques_ids_and_names": null,
                "alert_categories": [
                    "Malware"
                ],
                "original_tags": [
                    "DS:PANW/XDR Agent"
                ],
                "tags": [
                    "DS:PANW/XDR Agent"
                ]
            }
        ],
        "restricted_incident_ids": []
    }
}

```

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [April 16, 2024, 6:57am UTC](https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826/15 "2024-04-16T06:57:28Z")

</div>

Closed on April 16, 2024, 6:57am UTC



---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [March 18, 2025, 2:10pm UTC](https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826/16 "2025-03-18T14:10:50Z")

</div>

Opened on March 18, 2025, 2:10pm UTC



---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [March 18, 2025, 2:20pm UTC](https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826/17 "2025-03-18T14:20:16Z")

</div>

![image](https://us1.discourse-cdn.com/grafana/original/3X/0/7/073ef3cff8e17fd9a90a9cb254a695966641230c.png)

```auto
parse-json
| scope "reply.incidents"
| summarize "Incidents"=count() by "severity"

```

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [October 1, 2026, 3:29pm UTC](https://community.grafana.com/t/paloalto-cortex-xdr-dashboard-into-grafana/118826/18 "2026-10-01T15:29:13Z")

</div>

Closed on October 1, 2026, 3:29pm UTC


