<?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 Filter over 100 CIDR in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/filter-over-100-cidr/m-p/592194#M6927</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an XQL query and I need IPs to be displayed if they are in some CIDR.&lt;/P&gt;
&lt;P&gt;I know about the incidr command and the documentation says we can use it with multiple CIDR if we use coma to separate them.&lt;/P&gt;
&lt;P&gt;Example :&amp;nbsp;&lt;/P&gt;
&lt;PRE class="programlisting hljs  language-java"&gt;&lt;CODE&gt;filter incidr(ip_address, "192.168.0.0/24, 1.168.0.0/24") = true&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It doesn't work at all (I tried with 2 CIDR, I have an empty result and I should have at least one result).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using multiple lines with alter is not an option since I have over 100 CIDR (and 100 lines with alter to create) and the command will take forever to run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was wondering if using a custom dataset will work.&lt;/P&gt;
&lt;P&gt;If it does, how can I use it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Rémi.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2024 15:04:57 GMT</pubDate>
    <dc:creator>RemiLiquete</dc:creator>
    <dc:date>2024-07-16T15:04:57Z</dc:date>
    <item>
      <title>Filter over 100 CIDR</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/filter-over-100-cidr/m-p/592194#M6927</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an XQL query and I need IPs to be displayed if they are in some CIDR.&lt;/P&gt;
&lt;P&gt;I know about the incidr command and the documentation says we can use it with multiple CIDR if we use coma to separate them.&lt;/P&gt;
&lt;P&gt;Example :&amp;nbsp;&lt;/P&gt;
&lt;PRE class="programlisting hljs  language-java"&gt;&lt;CODE&gt;filter incidr(ip_address, "192.168.0.0/24, 1.168.0.0/24") = true&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It doesn't work at all (I tried with 2 CIDR, I have an empty result and I should have at least one result).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using multiple lines with alter is not an option since I have over 100 CIDR (and 100 lines with alter to create) and the command will take forever to run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was wondering if using a custom dataset will work.&lt;/P&gt;
&lt;P&gt;If it does, how can I use it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Rémi.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 15:04:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/filter-over-100-cidr/m-p/592194#M6927</guid>
      <dc:creator>RemiLiquete</dc:creator>
      <dc:date>2024-07-16T15:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filter over 100 CIDR</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/filter-over-100-cidr/m-p/592199#M6929</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for reaching us using the Live Community.&lt;BR /&gt;&lt;BR /&gt;Please try below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dataset = endpoints&lt;BR /&gt;| arrayexpand ip_address&lt;BR /&gt;| filter incidr(ip_address, "192.168.0.0/24, 1.168.0.0/24")&lt;BR /&gt;| fields ip_address&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post answers your question, please mark it as the solution.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 16:17:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/filter-over-100-cidr/m-p/592199#M6929</guid>
      <dc:creator>aspatil</dc:creator>
      <dc:date>2024-07-16T16:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Filter over 100 CIDR</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/filter-over-100-cidr/m-p/592403#M6951</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the exact query and the result is empty.&lt;/P&gt;
&lt;P&gt;I have IP addresses in 192.168.0.0/24.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If i run the query below, it's working but it's not an option since I have over 100 CIDR:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dataset = endpoints
| arrayexpand ip_address
| alter srcType = if(incidr(ip_address, "192.168.0.0/24") = true, "local", if(incidr(ip_address, "1.168.0.0/24") = true, "local", "remote"))
| filter srcType = "local"
| fields ip_address&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 08:28:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/filter-over-100-cidr/m-p/592403#M6951</guid>
      <dc:creator>RemiLiquete</dc:creator>
      <dc:date>2024-07-18T08:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Filter over 100 CIDR</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/filter-over-100-cidr/m-p/592525#M6954</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/311763"&gt;@RemiLiquete&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have helped you with template. You have to check how to include 100 CIDR, incase if you need assistance you can check with Accounts Team for Professional services.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 05:45:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/filter-over-100-cidr/m-p/592525#M6954</guid>
      <dc:creator>aspatil</dc:creator>
      <dc:date>2024-07-19T05:45:05Z</dc:date>
    </item>
  </channel>
</rss>

