<?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: comparing two values of Today and Yesterday in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/comparing-two-values-of-Today-and-Yesterday/m-p/118740#M31739</link>
    <description>&lt;P&gt;Hi abhayneilam,&lt;/P&gt;

&lt;P&gt;take a look at the &lt;A href="http://apps.splunk.com/app/1645/"&gt;timewrap&lt;/A&gt; app which will provide a new search command to do exactly those kind of time to time compares.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Thu, 03 Apr 2014 13:16:17 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2014-04-03T13:16:17Z</dc:date>
    <item>
      <title>comparing two values of Today and Yesterday</title>
      <link>https://community.splunk.com/t5/Splunk-Search/comparing-two-values-of-Today-and-Yesterday/m-p/118739#M31738</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have two searches , I want to compare one with other, one search should run for "Today" and other should run for "Yesterday", so I have used earliest=@d latest=now for "Today" and &lt;BR /&gt;
earliest=-1d@d latest=@d for "Yesterday" data, but here is one catch that it is not good to compare the data in this case because "Yesterday" is having full last 24 hours data and "Today" is having only the data till when I am running the query ( lets say 10 hours data ) , If I execute "Today" query it will be 12 hours data comparing with 24 hours data ...&lt;/P&gt;

&lt;P&gt;So, I want to make my query as such that it should compare today's 12 hours data with yesterday's 12 hours data.&lt;/P&gt;

&lt;P&gt;Need your help in doing that !! Please suggest me some solution.&lt;/P&gt;

&lt;P&gt;Thanks in advance !!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 13:09:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/comparing-two-values-of-Today-and-Yesterday/m-p/118739#M31738</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2014-04-03T13:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: comparing two values of Today and Yesterday</title>
      <link>https://community.splunk.com/t5/Splunk-Search/comparing-two-values-of-Today-and-Yesterday/m-p/118740#M31739</link>
      <description>&lt;P&gt;Hi abhayneilam,&lt;/P&gt;

&lt;P&gt;take a look at the &lt;A href="http://apps.splunk.com/app/1645/"&gt;timewrap&lt;/A&gt; app which will provide a new search command to do exactly those kind of time to time compares.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 13:16:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/comparing-two-values-of-Today-and-Yesterday/m-p/118740#M31739</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-04-03T13:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: comparing two values of Today and Yesterday</title>
      <link>https://community.splunk.com/t5/Splunk-Search/comparing-two-values-of-Today-and-Yesterday/m-p/118741#M31740</link>
      <description>&lt;P&gt;You could use &lt;CODE&gt;earliest=@d latest=@h&lt;/CODE&gt; for Today and &lt;CODE&gt;earliest=-1d@d latest=-24h@h&lt;/CODE&gt; for Yesterday.  Or &lt;CODE&gt;earliest=@d latest=@m&lt;/CODE&gt; for Today and &lt;CODE&gt;earliest=-1d@d latest=-1440m@m&lt;/CODE&gt; for Yesterday.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 13:18:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/comparing-two-values-of-Today-and-Yesterday/m-p/118741#M31740</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-04-03T13:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: comparing two values of Today and Yesterday</title>
      <link>https://community.splunk.com/t5/Splunk-Search/comparing-two-values-of-Today-and-Yesterday/m-p/118742#M31741</link>
      <description>&lt;P&gt;Thinking a bit about this request I came up with this run everywhere command:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=_internal ealiest=-25h@h | stats count(date_hour) as hourly_count by date_hour, date_wday&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;this will count all events per hour in the last 25 hours and group them per hour per day. Just adapt it to your needs, like filter the date_hour you need.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 13:44:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/comparing-two-values-of-Today-and-Yesterday/m-p/118742#M31741</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-04-03T13:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: comparing two values of Today and Yesterday</title>
      <link>https://community.splunk.com/t5/Splunk-Search/comparing-two-values-of-Today-and-Yesterday/m-p/118743#M31742</link>
      <description>&lt;P&gt;Try something like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| multisearch [search index=_internal earliest=@d latest=now | eval day="Today"] 
[search index=_internal [search index=_internal earliest=@d latest=now | head 1  | addinfo | eval latest=info_max_time-86400 | eval earliest=info_min_time-86400 | table earliest, latest| format "" "" " " "" "" ""] | eval day="Yesterday"]...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This query can compare data from Today's hours (if ran at 04/03/2014 10:00 AM, then 04/03/2014 0:00 AM to 04/03/2014 10:00 AM) with exact same hour's from yesterday (04/02/2014 00:00 AM to 04/02/2014 10:00 AM).&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 14:13:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/comparing-two-values-of-Today-and-Yesterday/m-p/118743#M31742</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-03T14:13:14Z</dc:date>
    </item>
  </channel>
</rss>

