<?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: Need to compare the last hour values of the fields with current one hour in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-to-compare-the-last-hour-values-of-the-fields-with-current/m-p/476181#M192628</link>
    <description>&lt;P&gt;Hi kartm,&lt;BR /&gt;
did you explored the timewrap command? ( &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Timewrap"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Timewrap&lt;/A&gt; )&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search
| timechart count span=1h 
| timewrap 1hour
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2019 17:59:13 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2019-09-12T17:59:13Z</dc:date>
    <item>
      <title>Need to compare the last hour values of the fields with current one hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-compare-the-last-hour-values-of-the-fields-with-current/m-p/476180#M192627</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
We are monitoring the transaction count. I need to verify the results of last one hour, if there is any decrease in the count the alert needs to be generated.&lt;BR /&gt;
For example :&lt;BR /&gt;
7 AM to 8 AM - transaction count with fields&lt;BR /&gt;
8 AM to 9 AM - I need to verify the fields values with 7AM to 8AM field values. If the count get decreased alerts needs to notified.&lt;BR /&gt;
How to write the search for this scenario.?&lt;BR /&gt;
Please suggest&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 14:08:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-compare-the-last-hour-values-of-the-fields-with-current/m-p/476180#M192627</guid>
      <dc:creator>kartm2020</dc:creator>
      <dc:date>2019-09-12T14:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare the last hour values of the fields with current one hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-compare-the-last-hour-values-of-the-fields-with-current/m-p/476181#M192628</link>
      <description>&lt;P&gt;Hi kartm,&lt;BR /&gt;
did you explored the timewrap command? ( &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Timewrap"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Timewrap&lt;/A&gt; )&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search
| timechart count span=1h 
| timewrap 1hour
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 17:59:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-compare-the-last-hour-values-of-the-fields-with-current/m-p/476181#M192628</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-09-12T17:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare the last hour values of the fields with current one hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-compare-the-last-hour-values-of-the-fields-with-current/m-p/476182#M192629</link>
      <description>&lt;P&gt;Great. Thank you. How can i compare the fields values with 1hour_before with latest fields values&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 05:39:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-compare-the-last-hour-values-of-the-fields-with-current/m-p/476182#M192629</guid>
      <dc:creator>kartm2020</dc:creator>
      <dc:date>2019-09-13T05:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare the last hour values of the fields with current one hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-compare-the-last-hour-values-of-the-fields-with-current/m-p/476183#M192630</link>
      <description>&lt;P&gt;Hi kartm,&lt;BR /&gt;
if this answer satisfies your need, please, accept and/or upvote it.&lt;BR /&gt;
Bye, see next time.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 06:58:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-compare-the-last-hour-values-of-the-fields-with-current/m-p/476183#M192630</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-09-13T06:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare the last hour values of the fields with current one hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-compare-the-last-hour-values-of-the-fields-with-current/m-p/476184#M192631</link>
      <description>&lt;P&gt;How can i compare the fields values with 1hour_before with latest fields values&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 09:32:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-compare-the-last-hour-values-of-the-fields-with-current/m-p/476184#M192631</guid>
      <dc:creator>kartm2020</dc:creator>
      <dc:date>2019-09-13T09:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare the last hour values of the fields with current one hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-compare-the-last-hour-values-of-the-fields-with-current/m-p/476185#M192632</link>
      <description>&lt;P&gt;try something like this:&lt;BR /&gt;
you must adapt your search creating something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal earliest=-3h@h latest=-h@h
| timechart count
| timewrap 1h
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 10:20:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-compare-the-last-hour-values-of-the-fields-with-current/m-p/476185#M192632</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-09-13T10:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare the last hour values of the fields with current one hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-compare-the-last-hour-values-of-the-fields-with-current/m-p/476186#M192633</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;BR /&gt;
It is giving the expected result. But i need the difference the two fields and results should be in the third field as a percentage.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 10:26:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-compare-the-last-hour-values-of-the-fields-with-current/m-p/476186#M192633</guid>
      <dc:creator>kartm2020</dc:creator>
      <dc:date>2019-09-13T10:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare the last hour values of the fields with current one hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-compare-the-last-hour-values-of-the-fields-with-current/m-p/476187#M192634</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal 
| timechart span=1h count
| delta count AS Delta
| eval deltaPerc=Delta/count*100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 10:36:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-compare-the-last-hour-values-of-the-fields-with-current/m-p/476187#M192634</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-09-13T10:36:42Z</dc:date>
    </item>
  </channel>
</rss>

