<?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 Using Host Inventory Dataset and joining endpoint DS for Group Names in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-using-host-inventory-dataset-and-joining-endpoint-ds-for/m-p/539499#M4200</link>
    <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/231174"&gt;@timurphy&lt;/a&gt;&amp;nbsp;Thanks a lot that worked well. I went with a similar approach and realised the issue I had was in the join to keep the original field names when I should have aliased them as 'As'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2023 08:35:47 GMT</pubDate>
    <dc:creator>michaelsysec242</dc:creator>
    <dc:date>2023-04-20T08:35:47Z</dc:date>
    <item>
      <title>XQL Using Host Inventory Dataset and joining endpoint DS for Group Names</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-using-host-inventory-dataset-and-joining-endpoint-ds-for/m-p/539352#M4189</link>
      <description>&lt;P&gt;Hello, I am attempting to write a query in which I display the host inventory applications and the Group Names field from the endpoint dataset. I have used in separate occasions Union and Join On but without success.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What can I do without affecting the datasets with Target etc ?&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Cortex XDR" id="Cortex_XDR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 12:08:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-using-host-inventory-dataset-and-joining-endpoint-ds-for/m-p/539352#M4189</guid>
      <dc:creator>michaelsysec242</dc:creator>
      <dc:date>2023-04-19T12:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Using Host Inventory Dataset and joining endpoint DS for Group Names</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-using-host-inventory-dataset-and-joining-endpoint-ds-for/m-p/539353#M4190</link>
      <description>&lt;P&gt;I would much appreciate if someone can provide an example, cheers!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 12:09:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-using-host-inventory-dataset-and-joining-endpoint-ds-for/m-p/539353#M4190</guid>
      <dc:creator>michaelsysec242</dc:creator>
      <dc:date>2023-04-19T12:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Using Host Inventory Dataset and joining endpoint DS for Group Names</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-using-host-inventory-dataset-and-joining-endpoint-ds-for/m-p/539400#M4194</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/209373"&gt;@michaelsysec242&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a simple example to get you started:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;preset = host_inventory_applications 
| fields install_date, vendor, application_name, version, endpoint_name, endpoint_id
| join type = left (dataset = endpoints | fields group_names, endpoint_id) as endpoints endpoints.endpoint_id = endpoint_id&lt;/LI-CODE&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;In the &lt;CODE&gt;join&lt;/CODE&gt; stage, you define the query (wrapped in parenthesis) targeting another dataset. That query is given a name (execution name), which in this example I simply called &lt;CODE&gt;endpoints&lt;/CODE&gt;. You can then refer to fields within the secondary query using dot-notation (&lt;CODE&gt;endpoints.endpoint_id&lt;/CODE&gt; is referring to the &lt;CODE&gt;endpoint_id&lt;/CODE&gt; field within the query defined in the &lt;CODE&gt;join&lt;/CODE&gt; stage).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The expression at the end of the line explains how the join is performed, in this case we are joining when there is an exact match of the &lt;CODE&gt;endpoint_id&lt;/CODE&gt; field from the parent query with the &lt;CODE&gt;endpoint_id&lt;/CODE&gt; field in the endpoints dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 16:27:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-using-host-inventory-dataset-and-joining-endpoint-ds-for/m-p/539400#M4194</guid>
      <dc:creator>timurphy</dc:creator>
      <dc:date>2023-04-19T16:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Using Host Inventory Dataset and joining endpoint DS for Group Names</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-using-host-inventory-dataset-and-joining-endpoint-ds-for/m-p/539499#M4200</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/231174"&gt;@timurphy&lt;/a&gt;&amp;nbsp;Thanks a lot that worked well. I went with a similar approach and realised the issue I had was in the join to keep the original field names when I should have aliased them as 'As'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 08:35:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-using-host-inventory-dataset-and-joining-endpoint-ds-for/m-p/539499#M4200</guid>
      <dc:creator>michaelsysec242</dc:creator>
      <dc:date>2023-04-20T08:35:47Z</dc:date>
    </item>
  </channel>
</rss>

