<?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: Filter a XQL Query of DNS requests in Strata Logging Service Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/strata-logging-service/filter-a-xql-query-of-dns-requests/m-p/575450#M17</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/922167235"&gt;@Arman_Zaheri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies for delayed response. In order to filter the local IP against a range you can use &lt;STRONG&gt;incidr&lt;/STRONG&gt; function as shown below.&lt;/P&gt;
&lt;P&gt;preset=network_story &lt;BR /&gt;| alter inrange = incidr(action_local_ip ,"10.0.0.0/24")&lt;BR /&gt;| filter inrange = true&lt;/P&gt;
&lt;P&gt;Output of &lt;STRONG&gt;incidr&lt;/STRONG&gt; is a boolean (true/false) which you can filter next.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding filtering out a list of domains, you need to create a lookup {&lt;SPAN&gt;Upload a csv, tsv, or json file (max. 30MB) to be used as a dataset} and then join it within in your query.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Reference lookup-&amp;nbsp;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Manage-Datasets" target="_blank"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Manage-Datasets&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Join stage-&amp;nbsp;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-XQL-Language-Reference/Getrole" target="_blank"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-XQL-Language-Reference/Getrole&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please click&amp;nbsp;&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;&amp;nbsp;to acknowledge that the answer to your question has been provided.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2024 03:35:45 GMT</pubDate>
    <dc:creator>nsinghvirk</dc:creator>
    <dc:date>2024-02-02T03:35:45Z</dc:date>
    <item>
      <title>Filter a XQL Query of DNS requests</title>
      <link>https://live.paloaltonetworks.com/t5/strata-logging-service/filter-a-xql-query-of-dns-requests/m-p/573924#M16</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm trying to write a XQL query to find DNS requests from clients in multiple IP ranges, e.g. "10.0.0.0/24, 10.1.1.0/24, 10.5.2.0/24, ..." and also filter DNS query name based on hundreds of domain names obtained from Firewall logs. How should I filter my query? Below you see a template of what I'm trying to start with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;preset= network_story &lt;BR /&gt;| filter (dns_query_name != null)&lt;BR /&gt;| arrayexpand dns_resolutions&lt;BR /&gt;| filter (action_local_ip in ???) and (dns_query_name in ???)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is also a question for me, can we use a file or dataset as a parameter here? Is it possible to store a dynamic list obtained from Cortex Data Lake as a parameter?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your support&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 18:38:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/strata-logging-service/filter-a-xql-query-of-dns-requests/m-p/573924#M16</guid>
      <dc:creator>Arman_Zaheri</dc:creator>
      <dc:date>2024-04-18T18:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a XQL Query of DNS requests</title>
      <link>https://live.paloaltonetworks.com/t5/strata-logging-service/filter-a-xql-query-of-dns-requests/m-p/575450#M17</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/922167235"&gt;@Arman_Zaheri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies for delayed response. In order to filter the local IP against a range you can use &lt;STRONG&gt;incidr&lt;/STRONG&gt; function as shown below.&lt;/P&gt;
&lt;P&gt;preset=network_story &lt;BR /&gt;| alter inrange = incidr(action_local_ip ,"10.0.0.0/24")&lt;BR /&gt;| filter inrange = true&lt;/P&gt;
&lt;P&gt;Output of &lt;STRONG&gt;incidr&lt;/STRONG&gt; is a boolean (true/false) which you can filter next.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding filtering out a list of domains, you need to create a lookup {&lt;SPAN&gt;Upload a csv, tsv, or json file (max. 30MB) to be used as a dataset} and then join it within in your query.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Reference lookup-&amp;nbsp;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Manage-Datasets" target="_blank"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Manage-Datasets&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Join stage-&amp;nbsp;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-XQL-Language-Reference/Getrole" target="_blank"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-XQL-Language-Reference/Getrole&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please click&amp;nbsp;&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;&amp;nbsp;to acknowledge that the answer to your question has been provided.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 03:35:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/strata-logging-service/filter-a-xql-query-of-dns-requests/m-p/575450#M17</guid>
      <dc:creator>nsinghvirk</dc:creator>
      <dc:date>2024-02-02T03:35:45Z</dc:date>
    </item>
  </channel>
</rss>

