<?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: Sum in Timechart problem in Splunk ITSI</title>
    <link>https://community.splunk.com/t5/Splunk-ITSI/Sum-in-Timechart-problem/m-p/492077#M1935</link>
    <description>&lt;P&gt;There are several solutions.&lt;/P&gt;

&lt;P&gt;1) You could add at the end, either before or after &lt;CODE&gt;timechart&lt;/CODE&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | rename COMMENT as "Move all _times five minutes later"
 | eval _time = _time +300
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2) Before the timechart, you could do this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rename COMMENT as "Move all _times to end of period"
| eval _time   = 300* ceiling(_time/300)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;3) or this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rename COMMENT as "Move all _times to end of period"
| eval _time   = _time + 299.999 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The difference in result between the three is whether you want events that occur at exactly 3:05 to show up at 3:05 or 3:10.   The first will  move them to 3:10, whereas the second and third will leave them at 3:05.&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2020 15:47:15 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2020-05-07T15:47:15Z</dc:date>
    <item>
      <title>Sum in Timechart problem</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Sum-in-Timechart-problem/m-p/492076#M1934</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;I m facing an issue while calculating summation in timechart for the span of 5mins in Single valued Visualization.&lt;BR /&gt;I wanted to display the sum of the data came in last 5 mins at the end of the window of 5 mins instead at start.&lt;BR /&gt;For example,&lt;BR /&gt;07/05/2020 07:05 34&lt;BR /&gt;07/05/2020 07:06 38&lt;BR /&gt;07/05/2020 07:08 10&lt;BR /&gt;07/05/2020 07:09 85&lt;BR /&gt;07/05/2020 07:10 43&lt;BR /&gt;07/05/2020 07:11 12&lt;/P&gt;
&lt;P&gt;Here, i want the sum after 7:05 till 7:10 to be displayed at 7:10 instead of 7:05, as 176 at 7:10 instead of 167 at 7:05.&lt;BR /&gt;Currently, i m using following query:&lt;BR /&gt;index=.... earliest=-24h&lt;BR /&gt;| timechart sum(count) as Volume span=5m &lt;BR /&gt;| fillnull value=0&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 00:07:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Sum-in-Timechart-problem/m-p/492076#M1934</guid>
      <dc:creator>himanish12</dc:creator>
      <dc:date>2020-06-07T00:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sum in Timechart problem</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Sum-in-Timechart-problem/m-p/492077#M1935</link>
      <description>&lt;P&gt;There are several solutions.&lt;/P&gt;

&lt;P&gt;1) You could add at the end, either before or after &lt;CODE&gt;timechart&lt;/CODE&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | rename COMMENT as "Move all _times five minutes later"
 | eval _time = _time +300
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2) Before the timechart, you could do this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rename COMMENT as "Move all _times to end of period"
| eval _time   = 300* ceiling(_time/300)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;3) or this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rename COMMENT as "Move all _times to end of period"
| eval _time   = _time + 299.999 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The difference in result between the three is whether you want events that occur at exactly 3:05 to show up at 3:05 or 3:10.   The first will  move them to 3:10, whereas the second and third will leave them at 3:05.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 15:47:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Sum-in-Timechart-problem/m-p/492077#M1935</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2020-05-07T15:47:15Z</dc:date>
    </item>
  </channel>
</rss>

