<?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: search for eventcount comparison for two different time ranges in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search-for-eventcount-comparison-for-two-different-time-ranges/m-p/445758#M168304</link>
    <description>&lt;P&gt;@john_q could you please add a mock screenshot of what is the expected output?&lt;/P&gt;

&lt;P&gt;Ideally when you compare time-series data over a duration, the duration needs to remain the same for different time period selected (as duration is plotted on fixed x-axis). For example You can compare current week with Previous week and that with the week before. For such scenario, you can use the &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Timewrap#Basic_example"&gt;timewrap&lt;/A&gt; command which is available version 6.5 onward.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jul 2018 08:47:07 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-07-17T08:47:07Z</dc:date>
    <item>
      <title>search for eventcount comparison for two different time ranges</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-for-eventcount-comparison-for-two-different-time-ranges/m-p/445756#M168302</link>
      <description>&lt;P&gt;i want to count eventcount comparison using time trends chart for today , lastweek and last2weeks. below are the my searches &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;index=something sourcetype=something earliest=-0d@d latest=@h| timechart count as "Today" | appendcols &lt;BR /&gt;
     [search index=something sourcetype=something earliest=-7d@w0 latest=@w0&lt;BR /&gt;
      | timechart count as "Previous week"]&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;for this iam getting output like this:alt text&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 06:39:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-for-eventcount-comparison-for-two-different-time-ranges/m-p/445756#M168302</guid>
      <dc:creator>john_q</dc:creator>
      <dc:date>2018-07-17T06:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: search for eventcount comparison for two different time ranges</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-for-eventcount-comparison-for-two-different-time-ranges/m-p/445757#M168303</link>
      <description>&lt;P&gt;Hi john_q,&lt;/P&gt;

&lt;P&gt;take a look at this answer &lt;A href="https://answers.splunk.com/answers/663294/timewrap-compare-last-24-hours-to-the-same-day-ove.html"&gt;https://answers.splunk.com/answers/663294/timewrap-compare-last-24-hours-to-the-same-day-ove.html&lt;/A&gt; to learn how this can be done without any sub search.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 08:45:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-for-eventcount-comparison-for-two-different-time-ranges/m-p/445757#M168303</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-07-17T08:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: search for eventcount comparison for two different time ranges</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-for-eventcount-comparison-for-two-different-time-ranges/m-p/445758#M168304</link>
      <description>&lt;P&gt;@john_q could you please add a mock screenshot of what is the expected output?&lt;/P&gt;

&lt;P&gt;Ideally when you compare time-series data over a duration, the duration needs to remain the same for different time period selected (as duration is plotted on fixed x-axis). For example You can compare current week with Previous week and that with the week before. For such scenario, you can use the &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Timewrap#Basic_example"&gt;timewrap&lt;/A&gt; command which is available version 6.5 onward.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 08:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-for-eventcount-comparison-for-two-different-time-ranges/m-p/445758#M168304</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-07-17T08:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: search for eventcount comparison for two different time ranges</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-for-eventcount-comparison-for-two-different-time-ranges/m-p/445759#M168305</link>
      <description>&lt;P&gt;i getting results like mentioned below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      _time                              Today              LastWeek
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;06-07-2018 06:01:01             120                     1000&lt;BR /&gt;
06-07-2018 07:11:01             10                       1012&lt;BR /&gt;
06-07-2018 08:01:01             20                       1128&lt;BR /&gt;
06-07-2018 09:05:01             105                     1222&lt;BR /&gt;
06-07-2018 09:41:01             80&lt;BR /&gt;&lt;BR /&gt;
06-07-2018 10:15:01             16&lt;BR /&gt;&lt;BR /&gt;
06-07-2018 10:22:01             12&lt;BR /&gt;&lt;BR /&gt;
06-07-2018 10:51:01             1                  &lt;/P&gt;

&lt;P&gt;two line are showing today time only and LastWeek legend showing today time only instead of lastweek time which is not fully completed. plz find the above attached image.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 05:54:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-for-eventcount-comparison-for-two-different-time-ranges/m-p/445759#M168305</guid>
      <dc:creator>john_q</dc:creator>
      <dc:date>2018-07-18T05:54:43Z</dc:date>
    </item>
  </channel>
</rss>

