<?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: XQL Query / Alert Help in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-alert-help/m-p/595101#M7081</link>
    <description>&lt;P&gt;Thanks for the information.&amp;nbsp; I ended up getting a response from the Unit 42 team and they provided a query that worked:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;config case_sensitive = false timeframe = 10M&lt;BR /&gt;| preset = network_story&lt;BR /&gt;| filter action_remote_ip = "XXX.XXX.XXX.XXX"&lt;BR /&gt;| comp count(action_local_ip) as counter by action_local_ip&lt;BR /&gt;| filter counter &amp;gt;= 300&lt;/P&gt;</description>
    <pubDate>Fri, 16 Aug 2024 13:14:32 GMT</pubDate>
    <dc:creator>egolovan</dc:creator>
    <dc:date>2024-08-16T13:14:32Z</dc:date>
    <item>
      <title>XQL Query / Alert Help</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-alert-help/m-p/595021#M7075</link>
      <description>&lt;P&gt;I'm trying to create a query / correlation rule to notify me if a certain number of connection attempts have hit a certain IP witihn 'x' amount of time. For example,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset = panw_ngfw_traffic_raw &lt;BR /&gt;| filter (dest_ip contains """xxx.xxx.xxx.xxx""")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a filter to only display if for example there are 500 events?&amp;nbsp; When I create the correlation rule with this query, there isn't an option to have a threshold. Any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 16:25:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-alert-help/m-p/595021#M7075</guid>
      <dc:creator>egolovan</dc:creator>
      <dc:date>2024-08-15T16:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Query / Alert Help</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-alert-help/m-p/595100#M7080</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1073233027"&gt;@egolovan&lt;/a&gt;, thanks for reaching us using the Live Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;Sadly I don't have PANW Firewall logs in my lab XDR tenant to try to help you, but the way to do this is in the correlation XQL query definition using the &lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-XQL-Language-Reference/count_distinct" target="_self"&gt;count_distinct&lt;/A&gt; stage to count this filtered events, and then use the &lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-XQL-Language-Reference/if" target="_self"&gt;if stage&lt;/A&gt;&amp;nbsp;for the &amp;gt;500 validation and return a value to a variable. Then filter this new variable for the &amp;gt;500 connections value and this will generate the correlation event.&lt;/P&gt;
&lt;P data-unlink="true"&gt;I'll try to find a similar use case to share here.&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;If this post answers your question, please mark it as the solution.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 13:07:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-alert-help/m-p/595100#M7080</guid>
      <dc:creator>jmazzeo</dc:creator>
      <dc:date>2024-08-16T13:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Query / Alert Help</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-alert-help/m-p/595101#M7081</link>
      <description>&lt;P&gt;Thanks for the information.&amp;nbsp; I ended up getting a response from the Unit 42 team and they provided a query that worked:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;config case_sensitive = false timeframe = 10M&lt;BR /&gt;| preset = network_story&lt;BR /&gt;| filter action_remote_ip = "XXX.XXX.XXX.XXX"&lt;BR /&gt;| comp count(action_local_ip) as counter by action_local_ip&lt;BR /&gt;| filter counter &amp;gt;= 300&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 13:14:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-alert-help/m-p/595101#M7081</guid>
      <dc:creator>egolovan</dc:creator>
      <dc:date>2024-08-16T13:14:32Z</dc:date>
    </item>
  </channel>
</rss>

