<?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 Filter out specific combination in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-filter-out-specific-combination/m-p/499961#M2109</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;i am trying to create XQL filter to filter out all known connections, so it only returns me connections that should not happen.&lt;/P&gt;&lt;P&gt;So i create separate line for each of those knows connections, like:&lt;/P&gt;&lt;P&gt;filter (action_local_ip != "10.130.130.34" and action_local_port != 445)&lt;/P&gt;&lt;P&gt;but that&amp;nbsp;doesn't work, it filters out all 445 source ports from report, and does not show rest of connections from&amp;nbsp;10.130.130.34.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to create that kind of filter that filters out only ip and port combination ?&lt;/P&gt;&lt;P&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;&amp;nbsp;&lt;/P&gt;&lt;P&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;&amp;nbsp;&lt;/P&gt;&lt;P&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;&amp;nbsp;&lt;/P&gt;&lt;P&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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2022 08:09:48 GMT</pubDate>
    <dc:creator>MBTNA</dc:creator>
    <dc:date>2022-06-06T08:09:48Z</dc:date>
    <item>
      <title>XQL Filter out specific combination</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-filter-out-specific-combination/m-p/499961#M2109</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;i am trying to create XQL filter to filter out all known connections, so it only returns me connections that should not happen.&lt;/P&gt;&lt;P&gt;So i create separate line for each of those knows connections, like:&lt;/P&gt;&lt;P&gt;filter (action_local_ip != "10.130.130.34" and action_local_port != 445)&lt;/P&gt;&lt;P&gt;but that&amp;nbsp;doesn't work, it filters out all 445 source ports from report, and does not show rest of connections from&amp;nbsp;10.130.130.34.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to create that kind of filter that filters out only ip and port combination ?&lt;/P&gt;&lt;P&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;&amp;nbsp;&lt;/P&gt;&lt;P&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;&amp;nbsp;&lt;/P&gt;&lt;P&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;&amp;nbsp;&lt;/P&gt;&lt;P&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 08:09:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-filter-out-specific-combination/m-p/499961#M2109</guid>
      <dc:creator>MBTNA</dc:creator>
      <dc:date>2022-06-06T08:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Filter out specific combination</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-filter-out-specific-combination/m-p/500309#M2112</link>
      <description>&lt;P&gt;Hi Mbaltalksnis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your query is filtering out 10.130.130.34 (action_local_ip != 10.130.130.34) which is why you're not seeing any additional traffic for that host.&amp;nbsp; If you wanted to see traffic from that host where the local port is not 445, you just need to drop the '!' from the action_local_ip portion of the query, as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data_set = xdr_data
| filter event_type = ENUM.NETWORK
| filter action_local_ip = 10.130.130.34 and action_local_port != 445&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Jun 2022 14:55:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-filter-out-specific-combination/m-p/500309#M2112</guid>
      <dc:creator>afurze</dc:creator>
      <dc:date>2022-06-06T14:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Filter out specific combination</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-filter-out-specific-combination/m-p/501069#M2128</link>
      <description>&lt;P&gt;In that filter that you provided in results i only get rest of the ports from&amp;nbsp;10.130.130.34, and there are no other local IPs in output.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 07:48:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-filter-out-specific-combination/m-p/501069#M2128</guid>
      <dc:creator>MBTNA</dc:creator>
      <dc:date>2022-06-07T07:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Filter out specific combination</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-filter-out-specific-combination/m-p/501210#M2129</link>
      <description>&lt;P&gt;You can add an OR to the filter and use parenthesis to group your operators, like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| filter (action_local_ip = "10.130.130.34" and action_local_port != 445) or action_local_ip != "10.130.130.34"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This selects either logs where the local IP is 10.130.130.34 and the source port is not 445, or logs where the local IP is not 10.130.130.34.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 13:40:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-filter-out-specific-combination/m-p/501210#M2129</guid>
      <dc:creator>afurze</dc:creator>
      <dc:date>2022-06-07T13:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Filter out specific combination</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-filter-out-specific-combination/m-p/501803#M2149</link>
      <description>&lt;P&gt;Thanks, that solution looks like is working, will try to work with that.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 14:37:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-filter-out-specific-combination/m-p/501803#M2149</guid>
      <dc:creator>MBTNA</dc:creator>
      <dc:date>2022-06-08T14:37:04Z</dc:date>
    </item>
  </channel>
</rss>

