<?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 Can I filter on hostnames in an array? in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/can-i-filter-on-hostnames-in-an-array/m-p/1253548#M9316</link>
    <description>&lt;P&gt;I'm running the following script, it should display the critical vulnerabilities on MacOS systems.&lt;BR /&gt;&lt;BR /&gt;//List critical vulnerabilities on all MacOS endpoints&lt;BR /&gt;config case_sensitive = false&lt;BR /&gt;| dataset = va_cves&lt;BR /&gt;| filter os_type = ENUM.MACOS and severity = ENUM.CRITICAL &lt;BR /&gt;| fields severity,name,description,affected_products,type,severity_score,os_type,affected_hosts_count,affected_hosts,modification_date,publication_date,exploitability_score&lt;BR /&gt;| sort desc severity_score&lt;BR /&gt;&lt;BR /&gt;The problem is that the affected_hosts array also contains Windows systems that are affected by the same CVE's.&lt;BR /&gt;How can I filter so it only reports MacOS systems?&lt;BR /&gt;All our Macbook names start with "MBP-" but I was not able to filter on that , so far.&lt;/P&gt;</description>
    <pubDate>Wed, 06 May 2026 19:16:29 GMT</pubDate>
    <dc:creator>edvardgooijenga</dc:creator>
    <dc:date>2026-05-06T19:16:29Z</dc:date>
    <item>
      <title>Can I filter on hostnames in an array?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/can-i-filter-on-hostnames-in-an-array/m-p/1253548#M9316</link>
      <description>&lt;P&gt;I'm running the following script, it should display the critical vulnerabilities on MacOS systems.&lt;BR /&gt;&lt;BR /&gt;//List critical vulnerabilities on all MacOS endpoints&lt;BR /&gt;config case_sensitive = false&lt;BR /&gt;| dataset = va_cves&lt;BR /&gt;| filter os_type = ENUM.MACOS and severity = ENUM.CRITICAL &lt;BR /&gt;| fields severity,name,description,affected_products,type,severity_score,os_type,affected_hosts_count,affected_hosts,modification_date,publication_date,exploitability_score&lt;BR /&gt;| sort desc severity_score&lt;BR /&gt;&lt;BR /&gt;The problem is that the affected_hosts array also contains Windows systems that are affected by the same CVE's.&lt;BR /&gt;How can I filter so it only reports MacOS systems?&lt;BR /&gt;All our Macbook names start with "MBP-" but I was not able to filter on that , so far.&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2026 19:16:29 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/can-i-filter-on-hostnames-in-an-array/m-p/1253548#M9316</guid>
      <dc:creator>edvardgooijenga</dc:creator>
      <dc:date>2026-05-06T19:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can I filter on hostnames in an array?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/can-i-filter-on-hostnames-in-an-array/m-p/1253621#M9318</link>
      <description>&lt;P&gt;&amp;nbsp;was able to sort it out a bit more.&lt;BR /&gt;&lt;BR /&gt;dataset = va_cves &lt;BR /&gt;| filter os_type contains "*MAC*" and severity = ENUM.CRITICAL &lt;BR /&gt;| arrayexpand affected_hosts &lt;BR /&gt;| filter affected_hosts contains "MBP-*"&lt;BR /&gt;| arrayexpand os_type&lt;BR /&gt;| filter os_type contains "*MAC*"&lt;BR /&gt;//| alter abc = json_extract(affected_hosts ,"$.version")&lt;BR /&gt;| fields severity,name,description,affected_products,type,severity_score,os_type,affected_hosts_count,affected_hosts,modification_date,publication_date,exploitability_score &lt;BR /&gt;| sort desc severity_score, desc name&lt;BR /&gt;&lt;BR /&gt;This returns Macbooks only but hostname_count field needs work and affected_products also.&lt;BR /&gt;Would be even nicer to have one row with all the Macbook name for each CVE instead of each Macbook having its own row.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 10:29:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/can-i-filter-on-hostnames-in-an-array/m-p/1253621#M9318</guid>
      <dc:creator>edvardgooijenga</dc:creator>
      <dc:date>2026-05-07T10:29:02Z</dc:date>
    </item>
  </channel>
</rss>

