<?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 to find all Mac_OS endpoints and return the version of Netskope installed on the hosts. in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-find-all-mac-os-endpoints-and-return-the-version-of/m-p/596309#M7125</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/222214"&gt;@rhodgkins1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out on LiveCommunity!&lt;/P&gt;
&lt;P&gt;Please try using below query. json_extract() function can be used to extract JSON fields.&lt;/P&gt;
&lt;P&gt;dataset = host_inventory&lt;BR /&gt;| filter os_type contains "OS_MAC"&lt;BR /&gt;| filter applications contains "netskope"&lt;BR /&gt;| arrayexpand applications &lt;BR /&gt;| alter abc = json_extract(applications ,"$.version")&lt;BR /&gt;| fields host_name, abc as Application_version&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please c&lt;SPAN&gt;lick&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;to acknowledge that the answer to your question has been provided.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2024 15:36:18 GMT</pubDate>
    <dc:creator>nsinghvirk</dc:creator>
    <dc:date>2024-08-29T15:36:18Z</dc:date>
    <item>
      <title>XQL Query to find all Mac_OS endpoints and return the version of Netskope installed on the hosts.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-find-all-mac-os-endpoints-and-return-the-version-of/m-p/596294#M7124</link>
      <description>&lt;P&gt;I am new to using xql and I am having trouble getting the information I need using a search query. I need to pull a list of all Mac_OS hosts and then within the applications field return the version of NetSkope installed on the client. I have started with the following query which returns the basic data, but I am lost as to how to extract the information from the applications field which is in a json format. Here is the query along with the sample block from the json data that I need to get. This JSON data is located within the Applications field.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset = host_inventory&lt;BR /&gt;| filter os_type contains "OS_MAC"&lt;BR /&gt;| filter applications contains "netskope"&lt;BR /&gt;| fields host_name, applications &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"identifier": "com.netskope.client.Netskope-Client",&lt;BR /&gt;"install_date": null,&lt;BR /&gt;"installed_for_sid": "global",&lt;BR /&gt;"is_from_appstore": false,&lt;BR /&gt;"key_name": null,&lt;BR /&gt;"manager_name": "macOS",&lt;BR /&gt;"application_name": "Netskope Client",&lt;BR /&gt;"raw_version": "118.1.1.2131 (118.1.1.2131)",&lt;BR /&gt;"uninstall_string": null,&lt;BR /&gt;"url_info_about": null,&lt;BR /&gt;"url_update_info": null,&lt;BR /&gt;"vendor": "netSkope, Inc.",&lt;BR /&gt;"version": "118.1.1.2131",&lt;BR /&gt;"win_installer": null&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 11:48:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-find-all-mac-os-endpoints-and-return-the-version-of/m-p/596294#M7124</guid>
      <dc:creator>rhodgkins1</dc:creator>
      <dc:date>2024-08-29T11:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Query to find all Mac_OS endpoints and return the version of Netskope installed on the hosts.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-find-all-mac-os-endpoints-and-return-the-version-of/m-p/596309#M7125</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/222214"&gt;@rhodgkins1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out on LiveCommunity!&lt;/P&gt;
&lt;P&gt;Please try using below query. json_extract() function can be used to extract JSON fields.&lt;/P&gt;
&lt;P&gt;dataset = host_inventory&lt;BR /&gt;| filter os_type contains "OS_MAC"&lt;BR /&gt;| filter applications contains "netskope"&lt;BR /&gt;| arrayexpand applications &lt;BR /&gt;| alter abc = json_extract(applications ,"$.version")&lt;BR /&gt;| fields host_name, abc as Application_version&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please c&lt;SPAN&gt;lick&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;to acknowledge that the answer to your question has been provided.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 15:36:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-find-all-mac-os-endpoints-and-return-the-version-of/m-p/596309#M7125</guid>
      <dc:creator>nsinghvirk</dc:creator>
      <dc:date>2024-08-29T15:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Query to find all Mac_OS endpoints and return the version of Netskope installed on the hosts.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-find-all-mac-os-endpoints-and-return-the-version-of/m-p/596317#M7126</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/256101"&gt;@nsinghvirk&lt;/a&gt;&amp;nbsp;thank you very much for your reply. This is getting much closer. However this is returning the version of every piece of software on the endpoints. I just need to have each host return the version of NetSkope installed on the host. In the code block below is the data I need to extract. If "Netskope Client" is the application_name, then I need the version.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"identifier": "com.netskope.client.Netskope-Client",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"install_date": null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"installed_for_sid": "global",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"is_from_appstore": false,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"key_name": null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"manager_name": "macOS",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"application_name": "Netskope Client",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"raw_version": "118.1.1.2131 (118.1.1.2131)",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"uninstall_string": null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"url_info_about": null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"url_update_info": null,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"vendor": "netSkope, Inc.",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"version": "118.1.1.2131",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"win_installer": null&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 17:21:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-to-find-all-mac-os-endpoints-and-return-the-version-of/m-p/596317#M7126</guid>
      <dc:creator>rhodgkins1</dc:creator>
      <dc:date>2024-08-29T17:21:52Z</dc:date>
    </item>
  </channel>
</rss>

