<?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 XQL Timeseries Chart in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-timeseries-chart/m-p/1220468#M7889</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I'm trying to build a timeseries chart that counts alert volume per day and that fills in zero values for days with no data. I have the following XQL that populates days with data but I'm unable to fill in a zero for all other days between now and the last event.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dataset = alerts | bin _time span = 1D timeshift = 1736879866 timezone = "America/New_York" | comp count() as numEvents by _time&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| sort asc _time&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| view graph type = line header = "Accessing bash history file using bash commands" xaxis = _time yaxis = numEvents&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How do I do this?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2025 19:15:23 GMT</pubDate>
    <dc:creator>Samuel_Mino</dc:creator>
    <dc:date>2025-02-14T19:15:23Z</dc:date>
    <item>
      <title>XQL Timeseries Chart</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-timeseries-chart/m-p/1220468#M7889</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm trying to build a timeseries chart that counts alert volume per day and that fills in zero values for days with no data. I have the following XQL that populates days with data but I'm unable to fill in a zero for all other days between now and the last event.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dataset = alerts | bin _time span = 1D timeshift = 1736879866 timezone = "America/New_York" | comp count() as numEvents by _time&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| sort asc _time&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| view graph type = line header = "Accessing bash history file using bash commands" xaxis = _time yaxis = numEvents&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How do I do this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 19:15:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-timeseries-chart/m-p/1220468#M7889</guid>
      <dc:creator>Samuel_Mino</dc:creator>
      <dc:date>2025-02-14T19:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Timeseries Chart</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-timeseries-chart/m-p/1220708#M7907</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/742650279"&gt;@Samuel_Mino&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for reaching out on LiveCommunity!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Below is the sample query for Incidents, please have a look and modify your query as per your requirements:&lt;BR /&gt;dataset = incidents | bin _time span = 1h | comp count (incident_id) as event_count by _time | sort asc _time | union ( dataset = xdr_data | filter event_type = ENUM.AGENT_STATUS | bin _time span=30m // Make sure this is smaller than your original time buckets | comp count() as empty_bucket_count by _time | alter empty_bucket_count = 0 ) | bin _time span=1h | comp sum(event_count) as event_count, sum(empty_bucket_count) as empty_bucket_count by _time | alter event_count = coalesce(event_count, empty_bucket_count)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you feel this has answered your query, please let us know by clicking on "mark this as a Solution". Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 06:18:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-timeseries-chart/m-p/1220708#M7907</guid>
      <dc:creator>aspatil</dc:creator>
      <dc:date>2025-02-18T06:18:40Z</dc:date>
    </item>
  </channel>
</rss>

