<?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: Event Sub Type causing issues in Query in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-event-sub-type-causing-issues-in-query/m-p/532541#M3733</link>
    <description>&lt;P&gt;Thank you for the response. Yes that fixes the issue.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2023 20:56:17 GMT</pubDate>
    <dc:creator>KanwarSingh01</dc:creator>
    <dc:date>2023-02-28T20:56:17Z</dc:date>
    <item>
      <title>XQL Query: Event Sub Type causing issues in Query</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-event-sub-type-causing-issues-in-query/m-p/532413#M3718</link>
      <description>&lt;P&gt;We have written a query to get certain files types being downloaded from browser process and get its parent process details etc. When we try to add the field &lt;STRONG&gt;event_sub_type&lt;/STRONG&gt; we start receiving and error. If we exclude the field from the query we get proper results. If you run the below queries you will be able to produce the error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try the below query: (Status == Success)&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;config case_sensitive = false 
| preset = xdr_process 
| filter action_process_image_name in ("chrome.exe","firefox.exe","msedge.exe","brave.exe","iexplorer.exe")
| fields agent_hostname as Host, action_process_image_name as Process, action_process_os_pid as PID, action_process_image_command_line as Command, actor_process_image_name as Parent_Process, actor_process_os_pid as PPID, actor_process_command_line as Parent_Command
| join (preset = xdr_file) as PF pf.actor_process_image_name = Process and pf.actor_process_os_pid = PID and pf.agent_hostname = Host
| filter event_sub_type in (ENUM.FILE_CREATE_NEW, ENUM.FILE_RENAME, ENUM.FILE_WRITE)
| filter action_file_name ~= ".*exe|.*dll|.*zip|.*rar|.*msi|.*vbs|.*one|.*html"
| filter action_file_name not contains "zone.identifier"
| filter action_file_path contains "Desktop" or action_file_path contains "Downloads" or action_file_path contains "Documents"
| fields Host, action_file_name as Filename, action_file_path as FilePath, Process, PID, Command, Parent_Process, PPID, Parent_Command&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, please try the below query: (Status == Fail)&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;config case_sensitive = false 
| preset = xdr_process 
| filter action_process_image_name in ("chrome.exe","firefox.exe","msedge.exe","brave.exe","iexplorer.exe")
| fields agent_hostname as Host, action_process_image_name as Process, action_process_os_pid as PID, action_process_image_command_line as Command, actor_process_image_name as Parent_Process, actor_process_os_pid as PPID, actor_process_command_line as Parent_Command
| join (preset = xdr_file) as PF pf.actor_process_image_name = Process and pf.actor_process_os_pid = PID and pf.agent_hostname = Host
| filter event_sub_type in (ENUM.FILE_CREATE_NEW, ENUM.FILE_RENAME, ENUM.FILE_WRITE)
| filter action_file_name ~= ".*exe|.*dll|.*zip|.*rar|.*msi|.*vbs|.*one|.*html"
| filter action_file_name not contains "zone.identifier"
| filter action_file_path contains "Desktop" or action_file_path contains "Downloads" or action_file_path contains "Documents"
| fields Host, event_sub_type, action_file_name as Filename, action_file_path as FilePath, Process, PID, Command, Parent_Process, PPID, Parent_Command&lt;/LI-CODE&gt;
&lt;P&gt;Notice the last line entry contains event_sub_type field, whereas in the first one we do not have this entry and the query succeeds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is anyone else facing this issue? Would we good to know and can we please get this sorted?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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>Tue, 28 Feb 2023 03:35:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-event-sub-type-causing-issues-in-query/m-p/532413#M3718</guid>
      <dc:creator>KanwarSingh01</dc:creator>
      <dc:date>2023-02-28T03:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Query: Event Sub Type causing issues in Query</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-event-sub-type-causing-issues-in-query/m-p/532464#M3721</link>
      <description>&lt;P&gt;Hi KanwarSingh01,&lt;BR /&gt;&lt;BR /&gt;When defining 'event_sub_type' as part of the &lt;EM&gt;fields &lt;/EM&gt;stage you must also include the 'event_type' field. Simply add&amp;nbsp; 'event_type' to your fields stage and I think you will find the issue is resolved.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ben&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 14:39:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-event-sub-type-causing-issues-in-query/m-p/532464#M3721</guid>
      <dc:creator>bbucao</dc:creator>
      <dc:date>2023-02-28T14:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Query: Event Sub Type causing issues in Query</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-event-sub-type-causing-issues-in-query/m-p/532541#M3733</link>
      <description>&lt;P&gt;Thank you for the response. Yes that fixes the issue.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 20:56:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-event-sub-type-causing-issues-in-query/m-p/532541#M3733</guid>
      <dc:creator>KanwarSingh01</dc:creator>
      <dc:date>2023-02-28T20:56:17Z</dc:date>
    </item>
  </channel>
</rss>

