<?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 Correlating a file path to application inventory in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/correlating-a-file-path-to-application-inventory/m-p/1247897#M9120</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am gathering an application inventory for endpoints in our environment. As part of this inventory, I'd like to include the install path for these applications. Currently Host Inventory XQL dataset only showcases uninstall strings in the applications field. Assistance in correlating an install path via joining datasets or something similar would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 10 Feb 2026 21:05:12 GMT</pubDate>
    <dc:creator>K.Murphy009035</dc:creator>
    <dc:date>2026-02-10T21:05:12Z</dc:date>
    <item>
      <title>Correlating a file path to application inventory</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/correlating-a-file-path-to-application-inventory/m-p/1247897#M9120</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am gathering an application inventory for endpoints in our environment. As part of this inventory, I'd like to include the install path for these applications. Currently Host Inventory XQL dataset only showcases uninstall strings in the applications field. Assistance in correlating an install path via joining datasets or something similar would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 21:05:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/correlating-a-file-path-to-application-inventory/m-p/1247897#M9120</guid>
      <dc:creator>K.Murphy009035</dc:creator>
      <dc:date>2026-02-10T21:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating a file path to application inventory</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/correlating-a-file-path-to-application-inventory/m-p/1247934#M9122</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1153168243"&gt;@K.Murphy009035&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Greetings for the day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To correlate an installation path with your application inventory, you can perform a join between the Host Inventory data (which contains the static list of installed software) and the XDR Data dataset (which captures real-time process execution telemetry including the file path).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While the &lt;CODE&gt;host_inventory&lt;/CODE&gt; dataset primarily focuses on application metadata like names, versions, and uninstall strings, the &lt;CODE&gt;xdr_data&lt;/CODE&gt; dataset records the actual &lt;CODE&gt;action_process_image_path&lt;/CODE&gt; when an application's process is executed on an endpoint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Recommended XQL Query:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following query filters for process execution events in &lt;CODE&gt;xdr_data&lt;/CODE&gt; to retrieve the file path and then joins that data with the &lt;CODE&gt;host_inventory_applications&lt;/CODE&gt; preset to enrich it with inventory details:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-sql"&gt;config case_sensitive = false
| dataset = xdr_data
// 1. Filter for process events to identify the execution path
| filter event_type = ENUM.PROCESS
| fields agent_hostname, action_process_image_name, action_process_image_path, action_process_signature_product
// 2. Reduce the results to unique host/application pairs
| dedup agent_hostname, action_process_image_name
// 3. Join with Host Inventory to correlate with the installed application list
| join type = left (
    preset = host_inventory_applications
    | fields endpoint_name, application_name, version, vendor
) as inv inv.endpoint_name = agent_hostname and inv.application_name contains action_process_image_name
// 4. Display the inventory name along with the identified install path
| fields agent_hostname, inv.application_name, inv.version, action_process_image_path, inv.vendor
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Key Components of the Solution:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;action_process_image_path&lt;/CODE&gt;: This field from the &lt;CODE&gt;xdr_data&lt;/CODE&gt; dataset provides the full directory path to the executable.&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;host_inventory_applications&lt;/CODE&gt;: This is the recommended preset for retrieving a comprehensive list of installed programs, including version and vendor information.&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;join&lt;/CODE&gt; Stage: Correlates the hostname and application name between the two datasets to map the execution path to the inventory record.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Important Considerations:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Host Insights Licensing&lt;/STRONG&gt;: Accessing the &lt;CODE&gt;host_inventory&lt;/CODE&gt; dataset and the &lt;CODE&gt;host_inventory_applications&lt;/CODE&gt; preset requires an active Host Insights add-on license and must be enabled in your Agent Settings profile.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Data Population:&lt;/STRONG&gt; The &lt;CODE&gt;xdr_data&lt;/CODE&gt; portion of the query only returns paths for applications that have actually run on the endpoint. If an application is installed but has never been executed, the path will not appear in &lt;CODE&gt;xdr_data&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;JSON Expansion:&lt;/STRONG&gt; If you wish to manually inspect all fields within the &lt;CODE&gt;host_inventory&lt;/CODE&gt; application array (including the uninstall string you mentioned), you can use the &lt;CODE&gt;arrayexpand&lt;/CODE&gt; and &lt;CODE&gt;json_extract&lt;/CODE&gt; functions:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-sql"&gt;dataset = host_inventory
| arrayexpand applications
| alter 
    app_name = json_extract(applications, "$.application_name"),
    uninstall_string = json_extract(applications, "$.uninstall_string")
| fields host_name, app_name, uninstall_string
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you feel this has answered your query, please let us know by clicking like and on&amp;nbsp;&lt;STRONG&gt;"mark this as a Solution".&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;S. Subashkar Sekar&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 13:39:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/correlating-a-file-path-to-application-inventory/m-p/1247934#M9122</guid>
      <dc:creator>susekar</dc:creator>
      <dc:date>2026-02-11T13:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating a file path to application inventory</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/correlating-a-file-path-to-application-inventory/m-p/1248058#M9128</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/241098"&gt;@susekar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The query required some altering to fit my needs. But the join logic was extremely insightful. Thank you for the well-crafted response.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 23:15:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/correlating-a-file-path-to-application-inventory/m-p/1248058#M9128</guid>
      <dc:creator>K.Murphy009035</dc:creator>
      <dc:date>2026-02-12T23:15:34Z</dc:date>
    </item>
  </channel>
</rss>

