<?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 for comparing 2 different time periods in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Query-for-comparing-2-different-time-periods/m-p/699599#M237495</link>
    <description>&lt;P&gt;That was quick, thank you!&lt;BR /&gt;&lt;BR /&gt;I always struggle a little bit with the date formats. Which formats are accepted in den &amp;lt;periods&amp;gt;-fields or what do I have to do, that format yyyy-mm-dd (without time) is possible?&lt;/P&gt;</description>
    <pubDate>Thu, 19 Sep 2024 14:38:07 GMT</pubDate>
    <dc:creator>WeiMar</dc:creator>
    <dc:date>2024-09-19T14:38:07Z</dc:date>
    <item>
      <title>Query for comparing 2 different time periods</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-comparing-2-different-time-periods/m-p/699569#M237480</link>
      <description>&lt;P&gt;Hi together,&lt;BR /&gt;I try to compare the PERC90 response times of an application before and after a software release for the 50 most used actions.&lt;BR /&gt;&lt;BR /&gt;Here's the query&lt;/P&gt;&lt;PRE&gt;index=myindex source=mysource &lt;BR /&gt;| rex field=_raw "^(?:[^;\n]*;){4}\s+(?P&amp;lt;utc_tsl_tranid&amp;gt;\w+:\w+)" &lt;BR /&gt;| rex field=_raw "^.+\/(?P&amp;lt;ui_locend&amp;gt;\w+\.[a-z_-]+\.\w+\.\w+)" &lt;BR /&gt;| dedup utc_tsl_tranid &lt;BR /&gt;| stats sum(DURATION) as weight by ui_locend &lt;BR /&gt;| sort - weight | head 50&lt;/PRE&gt;&lt;P&gt;Is there a way I can compare 2 time periods (for example: first start 2024-08-10 end 2024-08-15, second start 2024-08-20 end 2024-08-25).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Field ui_locend has to match and I like to compare PERC(90) of DURATION, which can be calculated with STATS-Command.&lt;BR /&gt;&lt;BR /&gt;It's a tricky one,&amp;nbsp;will appreciate every idea.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 12:37:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-comparing-2-different-time-periods/m-p/699569#M237480</guid>
      <dc:creator>WeiMar</dc:creator>
      <dc:date>2024-09-19T12:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Query for comparing 2 different time periods</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-comparing-2-different-time-periods/m-p/699571#M237481</link>
      <description>&lt;P&gt;Change the time period of your search to include both time periods e.g. (earliest=&amp;lt;start of first period&amp;gt; latest=&amp;lt;end of first period&amp;gt;) OR (earliest=&amp;lt;start of second period&amp;gt; latest=&amp;lt;end of second period&amp;gt;). Then evaluate which period the event falls into eval period=if(_time &amp;lt; end of first period, "first", "second"). Then add period to you by clause.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 12:54:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-comparing-2-different-time-periods/m-p/699571#M237481</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-09-19T12:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Query for comparing 2 different time periods</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-comparing-2-different-time-periods/m-p/699599#M237495</link>
      <description>&lt;P&gt;That was quick, thank you!&lt;BR /&gt;&lt;BR /&gt;I always struggle a little bit with the date formats. Which formats are accepted in den &amp;lt;periods&amp;gt;-fields or what do I have to do, that format yyyy-mm-dd (without time) is possible?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 14:38:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-comparing-2-different-time-periods/m-p/699599#M237495</guid>
      <dc:creator>WeiMar</dc:creator>
      <dc:date>2024-09-19T14:38:07Z</dc:date>
    </item>
  </channel>
</rss>

