<?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 To run an XQL query for USB device being plugged in the environment in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/to-run-an-xql-query-for-usb-device-being-plugged-in-the/m-p/549914#M4786</link>
    <description>&lt;P&gt;I am looking to run an XQL query to search for the USB devices being plugged into the environment. Can anyone please help me out so I can figure which USB devices have already been plugged into the environment at the client's office.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#usb #xql query&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2023 22:57:13 GMT</pubDate>
    <dc:creator>indy47</dc:creator>
    <dc:date>2023-07-18T22:57:13Z</dc:date>
    <item>
      <title>To run an XQL query for USB device being plugged in the environment</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/to-run-an-xql-query-for-usb-device-being-plugged-in-the/m-p/549914#M4786</link>
      <description>&lt;P&gt;I am looking to run an XQL query to search for the USB devices being plugged into the environment. Can anyone please help me out so I can figure which USB devices have already been plugged into the environment at the client's office.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#usb #xql query&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 22:57:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/to-run-an-xql-query-for-usb-device-being-plugged-in-the/m-p/549914#M4786</guid>
      <dc:creator>indy47</dc:creator>
      <dc:date>2023-07-18T22:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: To run an XQL query for USB device being plugged in the environment</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/to-run-an-xql-query-for-usb-device-being-plugged-in-the/m-p/549924#M4787</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/234145"&gt;@indy47&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for writing to live community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may start with the following XQL query to begin your investigation and tune your query and include relevant fields.&lt;BR /&gt;&lt;BR /&gt;dataset = xdr_data&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;// Using the xdr dataset&lt;/SPAN&gt;&lt;BR /&gt;|filter event_type=FILE&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" // filter Storage Device Drive type with value 2 which is for 'Removable Media'&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Note:&amp;nbsp;action_file_device_info is the field here which contains storage device info.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Please mark the response as "Accept as Solution" if it answers your query.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 02:53:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/to-run-an-xql-query-for-usb-device-being-plugged-in-the/m-p/549924#M4787</guid>
      <dc:creator>PiyushKohli</dc:creator>
      <dc:date>2023-07-19T02:53:11Z</dc:date>
    </item>
  </channel>
</rss>

