<?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: how can I compare the last week vs 3 hours of data in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599387#M12685</link>
    <description>&lt;P&gt;Not really - with your search, your x-axis will be the time in epoch format i.e. full date and time, so your two lines will not overlap as you would like.&lt;/P&gt;</description>
    <pubDate>Thu, 26 May 2022 08:01:22 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-05-26T08:01:22Z</dc:date>
    <item>
      <title>How can I compare the last week vs 3 hours of data?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599371#M12682</link>
      <description>&lt;P&gt;Hello Splunkers!!&lt;/P&gt;
&lt;P&gt;Can you help me understand that how can I compare the last week vs 3 hours of data in Splunk.&amp;nbsp;&lt;BR /&gt;Previously I have compared the current week and previous week of data by using the timewrap command but&amp;nbsp;last week vs 3 hours in creating confusion for me. Please provide me the solution and suggestion.&lt;/P&gt;
&lt;P&gt;Below screenshot belongs to Newrelic.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturenewrelic.PNG" style="width: 439px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19832iBB051867A5BDEC78/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capturenewrelic.PNG" alt="Capturenewrelic.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 16:46:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599371#M12682</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2022-05-26T16:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: how can I compare the last week vs 3 hours of data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599373#M12683</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=your_index ((earliest=@m-3h latest=@m) OR (earliest=@m-3w-3h latest=@m-3w))
| eval time=date_hour.":".date_minute
| chart count by time date_mday&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 26 May 2022 06:37:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599373#M12683</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-26T06:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: how can I compare the last week vs 3 hours of data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599383#M12684</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Thanks for your reply on this. But that is not giving me the correct result.&lt;/P&gt;&lt;P&gt;Can we use this SPL ?&lt;/P&gt;&lt;P&gt;&amp;lt;my search&amp;gt; earliest=-7d@d latest=now&lt;BR /&gt;| multikv | eval ReportKey1="1 week before"&lt;BR /&gt;| append&lt;BR /&gt;[search &amp;lt;my search&amp;gt; earliest=-3h@h latest=now&lt;BR /&gt;| multikv | eval ReportKey2="3 hours"]&lt;BR /&gt;| timechart count(ReportKey1) count(ReportKey2) span=30m&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 07:39:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599383#M12684</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2022-05-26T07:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: how can I compare the last week vs 3 hours of data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599387#M12685</link>
      <description>&lt;P&gt;Not really - with your search, your x-axis will be the time in epoch format i.e. full date and time, so your two lines will not overlap as you would like.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 08:01:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599387#M12685</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-26T08:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: how can I compare the last week vs 3 hours of data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599390#M12686</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You search giving this kind of visualization. Can you please to make more corrective on this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_20220526_142410__01.jpg" style="width: 3297px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19833i448B8D00875A41FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMG_20220526_142410__01.jpg" alt="IMG_20220526_142410__01.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 08:56:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599390#M12686</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2022-05-26T08:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: how can I compare the last week vs 3 hours of data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599391#M12687</link>
      <description>&lt;P&gt;What would you like to change about it?&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 09:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599391#M12687</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-26T09:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: how can I compare the last week vs 3 hours of data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599393#M12688</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Like the span in the x-axis would be like 30 mins if we the graph of the NewRelic which i have attached in my first screenshot.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 09:07:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599393#M12688</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2022-05-26T09:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: how can I compare the last week vs 3 hours of data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599396#M12689</link>
      <description>&lt;P&gt;The graphic you shared doesn't use a span of 30 minutes as there are multiple points within each 30 minute period across your 3 hour graph.&lt;/P&gt;&lt;P&gt;Do you want a point for each 30 minute period (span=30m) or a point for each minute?&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 09:21:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599396#M12689</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-26T09:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: how can I compare the last week vs 3 hours of data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599403#M12690</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; I am confusing with this timeframe "&amp;nbsp;&lt;/P&gt;&lt;P&gt;((earliest=@m-3h latest=@m) OR (earliest=@m-1w-3h latest=@m-3w)) "&lt;/P&gt;&lt;P&gt;Can you please help me explain this ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;And other than this can we use the time wrap command approach ?&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 10:00:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599403#M12690</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2022-05-26T10:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: how can I compare the last week vs 3 hours of data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599406#M12691</link>
      <description>&lt;P&gt;Your initial search (the line that starts with index=) will normally be over a timeframe defined by the earliest and latest options either in the dashboard or timepicker if in search app.&lt;/P&gt;&lt;P&gt;This can be overridden by defining earliest and latest values as part of the search.&lt;/P&gt;&lt;P&gt;What this part is doing is overriding the timeframe with two timeframe so events will be kept if they fall into either timeframe.&lt;/P&gt;&lt;P&gt;This has the advantage over using the append approach that you used because append is using a subsearch and is therefore limited to the number of events it can process.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 10:07:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599406#M12691</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-26T10:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: how can I compare the last week vs 3 hours of data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599415#M12692</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Can we use "&amp;nbsp;(earliest=@m-1w-3h latest=@m-1w)) in place of below you have suggested&lt;BR /&gt;&lt;BR /&gt;(earliest=@m-3w-3h latest=@m-3w))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have chnaged 3W to 1W&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 10:46:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599415#M12692</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2022-05-26T10:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: how can I compare the last week vs 3 hours of data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599416#M12693</link>
      <description>&lt;P&gt;Yes, that should work (assuming your index retains data for that period)&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 10:50:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599416#M12693</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-26T10:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: how can I compare the last week vs 3 hours of data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599420#M12694</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Let me explore as suggested. I will let you know if any issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your great help!!&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 10:58:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599420#M12694</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2022-05-26T10:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: how can I compare the last week vs 3 hours of data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599441#M12696</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; I have used your suggested query. But here you can see the yellow highlighted one which is showing 26 day of data as well as 5 day of the data. Here I want last 7 days of the data with comparison of last 3 hours of data. I think we need to modify some changes here "(earliest=@m-3w-3h latest=@m-3w)". Please help me to fix this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="uagraw01_0-1653571137808.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19839i41730ADD10A8BF3B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="uagraw01_0-1653571137808.png" alt="uagraw01_0-1653571137808.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 13:19:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599441#M12696</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2022-05-26T13:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: how can I compare the last week vs 3 hours of data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599442#M12697</link>
      <description>&lt;P&gt;26 is 26th of the month - 5 is the 5th of the month - these are 3 weeks apart.&lt;/P&gt;&lt;P&gt;I am not sure what you are trying to compare - do you want the last 3 hours and the same time of day for a day 3 weeks ago or something else?&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 13:24:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599442#M12697</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-26T13:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: how can I compare the last week vs 3 hours of data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599443#M12698</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Here I just want to compare a trend for last three hours with complete 1 week ago.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Que : do you want the last 3 hours and the same time of day for a day 3 weeks ago&amp;nbsp; :?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ans : No&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 13:34:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599443#M12698</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2022-05-26T13:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: how can I compare the last week vs 3 hours of data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599467#M12701</link>
      <description>&lt;P&gt;So what do you expect to be measured by the x-axis?&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 17:09:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599467#M12701</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-26T17:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: how can I compare the last week vs 3 hours of data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599468#M12702</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;I want the last 3 hours and the same time for a day 1 week ago.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 17:24:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599468#M12702</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2022-05-26T17:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: how can I compare the last week vs 3 hours of data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599469#M12703</link>
      <description>&lt;LI-CODE lang="markup"&gt;((earliest=@m-3h latest=@m) OR (earliest=@m-1w-3h latest=@m-1w))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 26 May 2022 17:28:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-can-I-compare-the-last-week-vs-3-hours-of-data/m-p/599469#M12703</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-26T17:28:01Z</dc:date>
    </item>
  </channel>
</rss>

