<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Widget Library XQL Query in Cortex XSIAM Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/widget-library-xql-query/m-p/592803#M60</link>
    <description>&lt;P&gt;Hi PA_nts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, since this is not your first time posting here, I strongly encourage you to reach out to your Customer Success team for an introduction as they can more quickly handle your questions than posting here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That being said, the queries for OOTB widgets are not exposed (and often do not use XQL but rather query the backend BigQuery database directly).&amp;nbsp; You can query the metrics_source dataset which contains all the ingest volumes in 5-minute increments per datasource.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As an example, this query will show you your ingest from Prisma Cloud in one hour increments for the past week:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;config timeframe = 7d
| dataset = metrics_source 
| filter _collector_type = "Prisma Cloud"
| bin _time span = 1h
| comp sum(total_size_bytes) as total_size_bytes by _time&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 23 Jul 2024 14:59:39 GMT</pubDate>
    <dc:creator>afurze</dc:creator>
    <dc:date>2024-07-23T14:59:39Z</dc:date>
    <item>
      <title>Widget Library XQL Query</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/widget-library-xql-query/m-p/592721#M59</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;So in the xsiam portal under 'Dashboard and reports' there is a pre-defined list of Widgets in the library..&lt;/P&gt;
&lt;P&gt;Within the 'system monitoring' library there is a widget called 'daily consumption' which is great to identify data sources ingestion per day/week/month etc..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question - anyone know how I can retrieve the actual xql query for thiswidget as I would like to create a custom widget but with alterations on this specific query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks in adv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 07:45:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/widget-library-xql-query/m-p/592721#M59</guid>
      <dc:creator>PA_nts</dc:creator>
      <dc:date>2024-07-23T07:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Widget Library XQL Query</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/widget-library-xql-query/m-p/592803#M60</link>
      <description>&lt;P&gt;Hi PA_nts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, since this is not your first time posting here, I strongly encourage you to reach out to your Customer Success team for an introduction as they can more quickly handle your questions than posting here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That being said, the queries for OOTB widgets are not exposed (and often do not use XQL but rather query the backend BigQuery database directly).&amp;nbsp; You can query the metrics_source dataset which contains all the ingest volumes in 5-minute increments per datasource.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As an example, this query will show you your ingest from Prisma Cloud in one hour increments for the past week:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;config timeframe = 7d
| dataset = metrics_source 
| filter _collector_type = "Prisma Cloud"
| bin _time span = 1h
| comp sum(total_size_bytes) as total_size_bytes by _time&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Jul 2024 14:59:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/widget-library-xql-query/m-p/592803#M60</guid>
      <dc:creator>afurze</dc:creator>
      <dc:date>2024-07-23T14:59:39Z</dc:date>
    </item>
  </channel>
</rss>

