<?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 logs of a particular host in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-event-logs-of-a-particular-host/m-p/519210#M3052</link>
    <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/223431"&gt;@MithunKT&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out.&amp;nbsp; Cortex XDR can show a maximum of&amp;nbsp;&lt;SPAN&gt;1000000 results only and it really is more on the microsoft excel download format issue than on the XDR.&amp;nbsp;I would suggest lowering down the timeframe for the query to lower limits(maybe 6 or 12 hours to get the results and export them.)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want the query itself to be designated with a custom timeframe then you may add config timeframe syntax to the above.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;config timeframe = 2h//run the query for the last 2 hours of timeframe&lt;BR /&gt;|dataset = xdr_data&lt;BR /&gt;| filter agent_hostname = "&amp;lt;hostname&amp;gt;" and event_type = ENUM.EVENT_LOG&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this solves your problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please mark the answer as "Accepted as Solution" if it solved your query&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Oct 2022 10:47:26 GMT</pubDate>
    <dc:creator>neelrohit</dc:creator>
    <dc:date>2022-10-26T10:47:26Z</dc:date>
    <item>
      <title>XQL Query - Event logs of a particular host</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-event-logs-of-a-particular-host/m-p/519153#M3048</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone tell me how do we query all event logs for a particular hostname using XQL ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!!&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>Wed, 26 Oct 2022 06:43:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-event-logs-of-a-particular-host/m-p/519153#M3048</guid>
      <dc:creator>MithunKT</dc:creator>
      <dc:date>2022-10-26T06:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Query - Event logs of a particular host</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-event-logs-of-a-particular-host/m-p/519183#M3050</link>
      <description>&lt;P&gt;*Editing the snippet*&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/223431"&gt;@MithunKT&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try using this if you want the xdr logs from the specific endpoints :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset = xdr_data &lt;BR /&gt;| filter agent_hostname = "&amp;lt;hostname&amp;gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your requirement is for eventlogs only then you can use the code below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset = xdr_data &lt;BR /&gt;| filter agent_hostname = "&amp;lt;hostname&amp;gt;" and event_type = ENUM.EVENT_LOG&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please mark this answer "Accept as Solution" if this answers your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 10:26:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-event-logs-of-a-particular-host/m-p/519183#M3050</guid>
      <dc:creator>neelrohit</dc:creator>
      <dc:date>2022-10-26T10:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Query - Event logs of a particular host</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-event-logs-of-a-particular-host/m-p/519208#M3051</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/142551"&gt;@neelrohit&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate for giving me the XQL query; it works great. But now I'm having trouble exporting the results (1000000 results). I would like to have these findings in tsv or spreadsheet format, but I cannot do so as it takes a lot of time, and after some time download goes to an error state.&lt;/P&gt;
&lt;P&gt;Would you like to suggest a different method for exporting these results into a tsv or excel file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!!&lt;BR /&gt;&lt;LI-PRODUCT title="Cortex XDR" id="Cortex_XDR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 10:36:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-event-logs-of-a-particular-host/m-p/519208#M3051</guid>
      <dc:creator>MithunKT</dc:creator>
      <dc:date>2022-10-26T10:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Query - Event logs of a particular host</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-event-logs-of-a-particular-host/m-p/519210#M3052</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/223431"&gt;@MithunKT&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out.&amp;nbsp; Cortex XDR can show a maximum of&amp;nbsp;&lt;SPAN&gt;1000000 results only and it really is more on the microsoft excel download format issue than on the XDR.&amp;nbsp;I would suggest lowering down the timeframe for the query to lower limits(maybe 6 or 12 hours to get the results and export them.)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want the query itself to be designated with a custom timeframe then you may add config timeframe syntax to the above.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;config timeframe = 2h//run the query for the last 2 hours of timeframe&lt;BR /&gt;|dataset = xdr_data&lt;BR /&gt;| filter agent_hostname = "&amp;lt;hostname&amp;gt;" and event_type = ENUM.EVENT_LOG&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this solves your problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please mark the answer as "Accepted as Solution" if it solved your query&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 10:47:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-event-logs-of-a-particular-host/m-p/519210#M3052</guid>
      <dc:creator>neelrohit</dc:creator>
      <dc:date>2022-10-26T10:47:26Z</dc:date>
    </item>
  </channel>
</rss>

