<?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: Query Builder to XQL in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/query-builder-to-xql/m-p/436971#M1101</link>
    <description>&lt;P&gt;Thanks I ended up with the following as i needed to include the user, file path, and file name&lt;/P&gt;&lt;P&gt;Now i just need the report to print all data in the PDF rather than a subset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dataset = xdr_data&lt;BR /&gt;| filter event_type = FILE and event_sub_type = FILE_CREATE_NEW&lt;BR /&gt;| alter Drive_Type = json_extract(to_json_string(action_file_device_info),"$.storage_device_drive_type")&lt;BR /&gt;| filter drive_type = "2"&lt;BR /&gt;| fields action_file_path as File_Path, actor_effective_username as Username, action_file_name&lt;/P&gt;</description>
    <pubDate>Mon, 27 Sep 2021 16:45:56 GMT</pubDate>
    <dc:creator>NathanBradley</dc:creator>
    <dc:date>2021-09-27T16:45:56Z</dc:date>
    <item>
      <title>Query Builder to XQL</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/query-builder-to-xql/m-p/436521#M1091</link>
      <description>&lt;P&gt;I have built queries within builder that I cannot replicate in a xql query&lt;/P&gt;&lt;P&gt;Is there a way to convert them quickly?&lt;/P&gt;&lt;P&gt;The example below was built with the builder, a search for files within removable media for the previous 24 hours&lt;/P&gt;&lt;P&gt;I need it in xql syntax in order to create widgets...etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File [ action type = all AND device type = removable media ] AND Time [ event timestamp in last 24H before Sep 24th 2021 01:00:00 ]&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 19:06:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/query-builder-to-xql/m-p/436521#M1091</guid>
      <dc:creator>NathanBradley</dc:creator>
      <dc:date>2021-09-24T19:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Query Builder to XQL</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/query-builder-to-xql/m-p/436872#M1096</link>
      <description>&lt;P&gt;Hi Nathan,&lt;/P&gt;&lt;P&gt;I haven't seen a way to convert queries from query builder to XQL as a feature in the product right now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But from XQL query library you can use the one named:&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="inline-edit-wrapper edit-disabled free-height"&gt;&lt;SPAN class="text-item"&gt;&lt;SPAN class="inner-text-item"&gt;Users creating more than 100 files on a removable device&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="inline-edit-wrapper edit-disabled free-height"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="inline-edit-wrapper edit-disabled free-height"&gt;&lt;SPAN class="text-item"&gt;It should give you a good starting point for what you're trying to do.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="inline-edit-wrapper edit-disabled free-height"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="inline-edit-wrapper edit-disabled free-height"&gt;&lt;SPAN class="text-item"&gt;Good luck.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="inline-edit-wrapper edit-disabled free-height"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="inline-edit-wrapper edit-disabled free-height"&gt;&lt;SPAN class="text-item"&gt;Luc&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Sep 2021 14:06:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/query-builder-to-xql/m-p/436872#M1096</guid>
      <dc:creator>Luc_Desaulniers</dc:creator>
      <dc:date>2021-09-27T14:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Query Builder to XQL</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/query-builder-to-xql/m-p/436958#M1100</link>
      <description>&lt;P&gt;dataset = xdr_data&lt;BR /&gt;| fields action_file_device_info as drive_info&lt;BR /&gt;| alter device_type = json_extract(to_json_string(drive_info), "$.storage_device_drive_type")&lt;BR /&gt;| filter drive_info != null&lt;BR /&gt;| filter device_type = "2"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;==========================&lt;BR /&gt;Note: Device type could be&lt;BR /&gt;==========================&lt;BR /&gt;Unknown = 0,&lt;BR /&gt;Fixed = 1,&lt;BR /&gt;Removable = 2,&lt;BR /&gt;Cdrom = 3,&lt;BR /&gt;Network = 4,&lt;BR /&gt;Ramdisk = 5&lt;BR /&gt;The "storage_device_drive_type" field is taken from this enum (json):&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 16:15:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/query-builder-to-xql/m-p/436958#M1100</guid>
      <dc:creator>malalade</dc:creator>
      <dc:date>2021-09-27T16:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Query Builder to XQL</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/query-builder-to-xql/m-p/436971#M1101</link>
      <description>&lt;P&gt;Thanks I ended up with the following as i needed to include the user, file path, and file name&lt;/P&gt;&lt;P&gt;Now i just need the report to print all data in the PDF rather than a subset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dataset = xdr_data&lt;BR /&gt;| filter event_type = FILE and event_sub_type = FILE_CREATE_NEW&lt;BR /&gt;| alter Drive_Type = json_extract(to_json_string(action_file_device_info),"$.storage_device_drive_type")&lt;BR /&gt;| filter drive_type = "2"&lt;BR /&gt;| fields action_file_path as File_Path, actor_effective_username as Username, action_file_name&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 16:45:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/query-builder-to-xql/m-p/436971#M1101</guid>
      <dc:creator>NathanBradley</dc:creator>
      <dc:date>2021-09-27T16:45:56Z</dc:date>
    </item>
  </channel>
</rss>

