<?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: help to compare 2 single panel value between 2 different times but between the same hour in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/601474#M12836</link>
    <description>&lt;P&gt;What do you mean almost the same? Have you checked the results from 7 days ago?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2022 06:56:17 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-06-13T06:56:17Z</dc:date>
    <item>
      <title>How to compare 2 single panel value between 2 different times but between the same hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/601469#M12835</link>
      <description>&lt;P&gt;hello&lt;/P&gt;
&lt;P&gt;In my dashboard, I need to compare 2 single panel value between 2 different times&lt;/P&gt;
&lt;P&gt;The first single panel stats the events on the last 15 minutes like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| stats max(sys_session_count) as session by host 
| stats sum(session) as session 
| table session &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, what I need to do is to compare this current single panel value with the results one week before during the same slot time&lt;/P&gt;
&lt;P&gt;For example, today is the 13 of June and the current hour is 8:15 AM&lt;/P&gt;
&lt;P&gt;So in the second single panel, I need to display result for the 6 of June at 8:15&lt;/P&gt;
&lt;P&gt;Here is what I am doing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;`index` sourcetype="system" earliest=-7d@d+7h latest=-7d@d+19h 
| bin _time span=15m 
| eval time=strftime(_time,"%H:%M") 
| stats max(sys_session_count) as session by host time 
| stats sum(session) as session by time
| eval current=now() 
| bin current span=15m 
| eval current=strftime(current,"%H:%M") 
| where time=current
| table session time&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I think it's not good because whatever the time is (8:15, 8:30, 8:45...), the results is almot the same&lt;/P&gt;
&lt;P&gt;So is anybody have an idea in order to answer to my need correctly?&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 19:58:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/601469#M12835</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-06-13T19:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: help to compare 2 single panel value between 2 different times but between the same hour</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/601474#M12836</link>
      <description>&lt;P&gt;What do you mean almost the same? Have you checked the results from 7 days ago?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 06:56:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/601474#M12836</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-13T06:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: help to compare 2 single panel value between 2 different times but between the same hour</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/601485#M12839</link>
      <description>&lt;P&gt;Except if I am mistaken, the relative time in the search annihilate the time picker choice&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 07:37:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/601485#M12839</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-06-13T07:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: help to compare 2 single panel value between 2 different times but between the same hour</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/601487#M12840</link>
      <description>&lt;P&gt;Yes, setting earliest and latest as you have done means that the timepicker is not used.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 07:39:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/601487#M12840</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-13T07:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: help to compare 2 single panel value between 2 different times but between the same hour</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/602035#M12872</link>
      <description>&lt;P&gt;So for answering your question it changes anything....&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 09:46:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/602035#M12872</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-06-16T09:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 single panel value between 2 different times but between the same hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/602173#M12876</link>
      <description>&lt;P&gt;Is anybody can help please?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 04:38:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/602173#M12876</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-06-17T04:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 single panel value between 2 different times but between the same hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/602181#M12877</link>
      <description>&lt;P&gt;OK I'll ask again. What do you mean by almost the same?&lt;/P&gt;&lt;P&gt;Can you give some examples of the results you are getting and explain why they are not what you expect them to be?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 05:39:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/602181#M12877</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-17T05:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 single panel value between 2 different times but between the same hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/602245#M12883</link>
      <description>&lt;P&gt;Please forget "almost the same"&lt;/P&gt;&lt;P&gt;Concerning my needs :&lt;/P&gt;&lt;P&gt;In a first search, I sum the number of session on the last 15 minutes like below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard refresh="60"&amp;gt;
  &amp;lt;label&amp;gt;XX&amp;lt;/label&amp;gt;
  &amp;lt;search id="session"&amp;gt;
    &amp;lt;query&amp;gt;`index` sourcetype="system" 
  &amp;lt;/query&amp;gt;
    &amp;lt;refresh&amp;gt;10s&amp;lt;/refresh&amp;gt;
    &amp;lt;refreshType&amp;gt;delay&amp;lt;/refreshType&amp;gt;
    &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;search base="session"&amp;gt;
          &amp;lt;query&amp;gt;| stats max(sys_session_count) as session by host 
| stats sum(session) as session 
| table session &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; Now, I need to do the same thing 7 days before the current day&lt;/P&gt;&lt;P&gt;So here is what I doing&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;`index` sourcetype="system" earliest=-7d@h latest=-7d@h+15m 
| stats max(sys_session_count) as session by host 
| stats sum(session) as session 
| table session &lt;/LI-CODE&gt;&lt;P&gt;But it seems that earliest=-7d@h latest=-7d@h+15m dont display events on the last 15m compared to the current time&lt;/P&gt;&lt;P&gt;what I exactly need&amp;nbsp; in this second search is to sum the number of session 7 days ago and on the last 15 minutes only&lt;/P&gt;&lt;P&gt;so I am looking for the best way to do this please&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 13:49:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/602245#M12883</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-06-17T13:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare 2 single panel value between 2 different times but between the same hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/602253#M12885</link>
      <description>&lt;P&gt;Shouldn't this be&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype="system" earliest=-7d@m-15m latest=-7d@m &lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 17 Jun 2022 14:29:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-compare-2-single-panel-value-between-2-different-times/m-p/602253#M12885</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-17T14:29:06Z</dc:date>
    </item>
  </channel>
</rss>

