<?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 Omit time range in query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Omit-time-range-in-query/m-p/670779#M229915</link>
    <description>&lt;P&gt;I am querying a change in a value each week over last 4 weeks. Ineed to know the value from the week before the search window to work out the change correctly.&lt;/P&gt;&lt;P&gt;index=ind sourcetype=src (type=instrument) earliest=-5w@w+1d latest=@w+1d&lt;BR /&gt;| bucket _time span=7d&lt;BR /&gt;| stats max(reading) as WeekMax by _time&lt;BR /&gt;| streamstats current=f last(WeekMax) as LastWeekMax&lt;BR /&gt;| eval WeekDelta = WeekMax - LastWeekMax&lt;BR /&gt;| eval WeekDelta = if(WeekDelta &amp;lt; 0, 0.000000, WeekDelta)&lt;BR /&gt;| table _time, WeekMax, WeekDelta&lt;/P&gt;&lt;P&gt;I don't want to show the time for the week before the query (-5th week). Any tips on how to change this query to only show results for last 4 weeks but still calculating the change correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2023 09:29:12 GMT</pubDate>
    <dc:creator>dataisbeautiful</dc:creator>
    <dc:date>2023-12-05T09:29:12Z</dc:date>
    <item>
      <title>Omit time range in query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Omit-time-range-in-query/m-p/670779#M229915</link>
      <description>&lt;P&gt;I am querying a change in a value each week over last 4 weeks. Ineed to know the value from the week before the search window to work out the change correctly.&lt;/P&gt;&lt;P&gt;index=ind sourcetype=src (type=instrument) earliest=-5w@w+1d latest=@w+1d&lt;BR /&gt;| bucket _time span=7d&lt;BR /&gt;| stats max(reading) as WeekMax by _time&lt;BR /&gt;| streamstats current=f last(WeekMax) as LastWeekMax&lt;BR /&gt;| eval WeekDelta = WeekMax - LastWeekMax&lt;BR /&gt;| eval WeekDelta = if(WeekDelta &amp;lt; 0, 0.000000, WeekDelta)&lt;BR /&gt;| table _time, WeekMax, WeekDelta&lt;/P&gt;&lt;P&gt;I don't want to show the time for the week before the query (-5th week). Any tips on how to change this query to only show results for last 4 weeks but still calculating the change correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 09:29:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Omit-time-range-in-query/m-p/670779#M229915</guid>
      <dc:creator>dataisbeautiful</dc:creator>
      <dc:date>2023-12-05T09:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Omit time range in query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Omit-time-range-in-query/m-p/670806#M229922</link>
      <description>&lt;LI-CODE lang="markup"&gt;| where _time &amp;gt; relative_time(now(),"-4w@w+1d")&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 05 Dec 2023 12:09:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Omit-time-range-in-query/m-p/670806#M229922</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-12-05T12:09:23Z</dc:date>
    </item>
  </channel>
</rss>

