<?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 XQL - Time alteration in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-time-alteration/m-p/1221736#M7949</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Here is the scenario:&lt;BR /&gt;&lt;BR /&gt;I have a table lookup looking for a specific event.&lt;/P&gt;
&lt;P&gt;dataset = xdr_data&lt;/P&gt;
&lt;P&gt;| filter event_type = SOME EVENT &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;| alter TimeOfIntereset = _time &lt;BR /&gt;&lt;BR /&gt;Now I want to join this again with the dataset table to enrich it and perform further analysis based on the time.&lt;/P&gt;
&lt;P&gt;| join type = inner (&lt;/P&gt;
&lt;P&gt;dataset = xdr_data&lt;/P&gt;
&lt;P&gt;| filter event_type = SOME EVENT ) &lt;BR /&gt;&lt;BR /&gt;At this part when the join happens I only want to look at 30 seconds to 1 minute of events after the time the event of interest occurred.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;| filter _time &amp;gt; TimeOfIntereset and&amp;nbsp; _time &amp;lt; TimeOfIntereset + 30s&lt;BR /&gt;&lt;BR /&gt;The issue is that you cannot just add time to a time field.&lt;BR /&gt;Personally I believe that XQL is super rigid.&lt;BR /&gt;&lt;BR /&gt;The scenario is essentially a sequence event where I want to look for events occurring up to a minute after a specific event.&lt;BR /&gt;&lt;BR /&gt;so The question is how can I alter the field to be able to add 30 seconds or 1 minute to it and then use it for the filter.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2025 08:02:55 GMT</pubDate>
    <dc:creator>AvesterFahimipour</dc:creator>
    <dc:date>2025-02-24T08:02:55Z</dc:date>
    <item>
      <title>XQL - Time alteration</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-time-alteration/m-p/1221736#M7949</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Here is the scenario:&lt;BR /&gt;&lt;BR /&gt;I have a table lookup looking for a specific event.&lt;/P&gt;
&lt;P&gt;dataset = xdr_data&lt;/P&gt;
&lt;P&gt;| filter event_type = SOME EVENT &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;| alter TimeOfIntereset = _time &lt;BR /&gt;&lt;BR /&gt;Now I want to join this again with the dataset table to enrich it and perform further analysis based on the time.&lt;/P&gt;
&lt;P&gt;| join type = inner (&lt;/P&gt;
&lt;P&gt;dataset = xdr_data&lt;/P&gt;
&lt;P&gt;| filter event_type = SOME EVENT ) &lt;BR /&gt;&lt;BR /&gt;At this part when the join happens I only want to look at 30 seconds to 1 minute of events after the time the event of interest occurred.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;| filter _time &amp;gt; TimeOfIntereset and&amp;nbsp; _time &amp;lt; TimeOfIntereset + 30s&lt;BR /&gt;&lt;BR /&gt;The issue is that you cannot just add time to a time field.&lt;BR /&gt;Personally I believe that XQL is super rigid.&lt;BR /&gt;&lt;BR /&gt;The scenario is essentially a sequence event where I want to look for events occurring up to a minute after a specific event.&lt;BR /&gt;&lt;BR /&gt;so The question is how can I alter the field to be able to add 30 seconds or 1 minute to it and then use it for the filter.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 08:02:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-time-alteration/m-p/1221736#M7949</guid>
      <dc:creator>AvesterFahimipour</dc:creator>
      <dc:date>2025-02-24T08:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: XQL - Time alteration</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-time-alteration/m-p/1221745#M7950</link>
      <description>&lt;P&gt;Hello Again,&lt;BR /&gt;I was able to find the solution:&lt;BR /&gt;| alter EndTime = to_timestamp(add(to_epoch(ClipTime , "SECONDS") , 30)) &lt;BR /&gt;This is how you do it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 09:56:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-time-alteration/m-p/1221745#M7950</guid>
      <dc:creator>AvesterFahimipour</dc:creator>
      <dc:date>2025-02-24T09:56:33Z</dc:date>
    </item>
  </channel>
</rss>

