<?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 Cortex XDR Agent Scripts Library in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-agent-scripts-library/m-p/589960#M6834</link>
    <description>&lt;P&gt;Hi Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a query. I am interested in retrieving the user access history for a specific URL in the browser for the last 3 months. Is it possible to run a Python script to retrieve this information?&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2024 07:28:57 GMT</pubDate>
    <dc:creator>Vinothkumar_SBA</dc:creator>
    <dc:date>2024-06-20T07:28:57Z</dc:date>
    <item>
      <title>Cortex XDR Agent Scripts Library</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-agent-scripts-library/m-p/589960#M6834</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a query. I am interested in retrieving the user access history for a specific URL in the browser for the last 3 months. Is it possible to run a Python script to retrieve this information?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 07:28:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-agent-scripts-library/m-p/589960#M6834</guid>
      <dc:creator>Vinothkumar_SBA</dc:creator>
      <dc:date>2024-06-20T07:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cortex XDR Agent Scripts Library</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-agent-scripts-library/m-p/590226#M6845</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/243138"&gt;@Vinothkumar_SBA&lt;/a&gt;&amp;nbsp;, thanks for reaching us using the Live Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at this XQL Queries that should work for the data stored in the xdr_data dataset:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dataset = xdr_data
| filter actor_effective_username contains "insert user here"
| filter actor_process_image_name in ("msedge.exe","chrome.exe","firefox.exe") and action_external_hostname != null
| fields agent_hostname, agent_ip_addresses, actor_effective_username, actor_process_image_name, action_external_hostname
| sort desc _time

preset = network_story 
| filter actor_effective_username contains "insert user here"
| filter actor_process_image_name in ("msedge.exe","chrome.exe","firefox.exe") and dst_action_external_hostname != null
| fields agent_hostname, agent_ip_addresses, actor_effective_username, actor_process_image_name, dst_action_external_hostname
| sort desc _time&lt;/LI-CODE&gt;
&lt;P&gt;You can add the filters for the external hostname as you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need older information than the stored in the dataset, the answer is yes, you can create a Python script to retrieve that information from the Endpoint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post answers your question, please mark it as the solution.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 14:15:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-agent-scripts-library/m-p/590226#M6845</guid>
      <dc:creator>jmazzeo</dc:creator>
      <dc:date>2024-06-24T14:15:37Z</dc:date>
    </item>
  </channel>
</rss>

