<?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 For Silent Log Source in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-for-silent-log-source/m-p/600780#M7334</link>
    <description>&lt;P&gt;below is the query so far but what we are trying to do is get a silent log source detection. For example, one of the log source names has not sent a log in x number of hours then alert. Any suggestions?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;dataset = panw_ngfw_traffic_raw | fields log_source_name | dedup log_source_name&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2024 15:49:18 GMT</pubDate>
    <dc:creator>rhydhampatel</dc:creator>
    <dc:date>2024-10-15T15:49:18Z</dc:date>
    <item>
      <title>XQL For Silent Log Source</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-for-silent-log-source/m-p/600780#M7334</link>
      <description>&lt;P&gt;below is the query so far but what we are trying to do is get a silent log source detection. For example, one of the log source names has not sent a log in x number of hours then alert. Any suggestions?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;dataset = panw_ngfw_traffic_raw | fields log_source_name | dedup log_source_name&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 15:49:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-for-silent-log-source/m-p/600780#M7334</guid>
      <dc:creator>rhydhampatel</dc:creator>
      <dc:date>2024-10-15T15:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: XQL For Silent Log Source</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-for-silent-log-source/m-p/603804#M7339</link>
      <description>&lt;P&gt;I need to test but I think it can be something like below.&lt;/P&gt;
&lt;P&gt;dataset = panw_ngfw_traffic_raw | fields log_source_name,_timestamp&lt;/P&gt;
&lt;P&gt;|comp max(_timestamp) as offlinesince by log_source_name&lt;/P&gt;
&lt;P&gt;|Filter&amp;nbsp; timestamp_diff(currenttime(),offlinesince,"HOUR")&amp;gt; x //x being the hours you mentioned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Correct the syntaxes wherever necessary using the xql reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 04:53:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-for-silent-log-source/m-p/603804#M7339</guid>
      <dc:creator>Fm12345</dc:creator>
      <dc:date>2024-10-17T04:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: XQL For Silent Log Source</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-for-silent-log-source/m-p/606294#M7342</link>
      <description>&lt;P&gt;Thank you for that info, that really helped a lot and below is the full query and if you want to limit per log source you can define limit at the end for example | limit 2 etc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;dataset = panw_ngfw_traffic_raw&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;| fields log_source_name, _insert_time, _time&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;| comp max(_time) as offlinesince by log_source_name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;| alter ct = current_time()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;| alter diff_in_hour = timestamp_diff(ct, offlinesince, "HOUR")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;| filter diff_in_hour &amp;gt; 0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 17:38:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-for-silent-log-source/m-p/606294#M7342</guid>
      <dc:creator>rhydhampatel</dc:creator>
      <dc:date>2024-10-17T17:38:12Z</dc:date>
    </item>
  </channel>
</rss>

