<?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: timechart and sum seperate events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61395#M15165</link>
    <description>&lt;P&gt;You could do the eval after the timechart, provided there is a value for each field for each bucket.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Mar 2013 13:39:00 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2013-03-14T13:39:00Z</dc:date>
    <item>
      <title>timechart and sum seperate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61384#M15154</link>
      <description>&lt;P&gt;Im running this query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="forward*" count 
| eval platform_800_count = ASICM_count_DN_800 + DF2_count_DN_800 + DF2_count_TT_800 
| timechart max(coin_ENEC_count_DN_800), max(ASICM_count_DN_800), max(DF2_count_DN_800), max(DF2_count_TT_800), max(platform_800_count) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I expect eval to sum the fields into platform_800_count and as a last step to timechart this field but it does not present a value on the chart for platform_800_count.&lt;/P&gt;

&lt;P&gt;Other fields are presented.&lt;/P&gt;

&lt;P&gt;As Martin points out below I cannot eval seperate events, is there another method to do this?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:30:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61384#M15154</guid>
      <dc:creator>HansK</dc:creator>
      <dc:date>2020-09-28T13:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and sum seperate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61385#M15155</link>
      <description>&lt;P&gt;Does platform_800_count have values before you apply the timechart?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:30:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61385#M15155</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2020-09-28T13:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and sum seperate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61386#M15156</link>
      <description>&lt;P&gt;no it's a new field i create with eval&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2013 12:52:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61386#M15156</guid>
      <dc:creator>HansK</dc:creator>
      <dc:date>2013-03-14T12:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and sum seperate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61387#M15157</link>
      <description>&lt;P&gt;After eval, before timechart. Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="forward*" count | eval platform_800_count = ASICM_count_DN_800 + DF2_count_DN_800 + DF2_count_TT_800 | stats values(platform_800_count)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Mar 2013 12:53:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61387#M15157</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-14T12:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and sum seperate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61388#M15158</link>
      <description>&lt;P&gt;this query as above gives "no results found"&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2013 13:01:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61388#M15158</guid>
      <dc:creator>HansK</dc:creator>
      <dc:date>2013-03-14T13:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and sum seperate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61389#M15159</link>
      <description>&lt;P&gt;Then your eval didn't work as you expected, so timechart has no chance to do anything.&lt;/P&gt;

&lt;P&gt;What values do you have in those three fields you add together? All numbers?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2013 13:02:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61389#M15159</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-14T13:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and sum seperate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61390#M15160</link>
      <description>&lt;P&gt;Yes, all numbers and they all show up on the timechart.&lt;/P&gt;

&lt;P&gt;If I only eval one field like "eval platform_800_count = ASICM_count_DN_800|" it does not show either.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:30:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61390#M15160</guid>
      <dc:creator>HansK</dc:creator>
      <dc:date>2020-09-28T13:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and sum seperate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61391#M15161</link>
      <description>&lt;P&gt;Odd - got some sample data?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2013 13:12:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61391#M15161</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-14T13:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and sum seperate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61392#M15162</link>
      <description>&lt;P&gt;data is like this:&lt;BR /&gt;
2013-03-14 14:10:14 DF2_count_DN_800=669&lt;BR /&gt;
2013-03-14 14:10:14 ASICM_count_DN_800=723&lt;BR /&gt;
2013-03-14 14:10:14 DF2_count_TT_800=1155&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:30:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61392#M15162</guid>
      <dc:creator>HansK</dc:creator>
      <dc:date>2020-09-28T13:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and sum seperate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61393#M15163</link>
      <description>&lt;P&gt;I see, those three are in separate events? Eval works on a per-event basis.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2013 13:26:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61393#M15163</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-14T13:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and sum seperate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61394#M15164</link>
      <description>&lt;P&gt;oops, ok did not know that&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2013 13:34:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61394#M15164</guid>
      <dc:creator>HansK</dc:creator>
      <dc:date>2013-03-14T13:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and sum seperate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61395#M15165</link>
      <description>&lt;P&gt;You could do the eval after the timechart, provided there is a value for each field for each bucket.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2013 13:39:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61395#M15165</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-14T13:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and sum seperate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61396#M15166</link>
      <description>&lt;P&gt;Like so?:&lt;BR /&gt;
host="forward*" count &lt;BR /&gt;
| timechart max(coin_ENEC_count_DN_800), max(ASICM_count_DN_800), max(DF2_count_DN_800), max(DF2_count_TT_800) &lt;BR /&gt;
|eval platform_800_count = ASICM_count_DN_800 + DF2_count_DN_800 + DF2_count_TT_800 &lt;/P&gt;

&lt;P&gt;How would I go about presenting the new field in the timechart?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:30:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61396#M15166</guid>
      <dc:creator>HansK</dc:creator>
      <dc:date>2020-09-28T13:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and sum seperate events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61397#M15167</link>
      <description>&lt;P&gt;In order for that sum to work you first need to rename the result of your timechart. Switch to the table view instead of the graph to better understand this. The columns listed there is what eval can use as input. Once you correctly eval yourself a new field it automagically becomes a column there, and will automagically appear in the timechart.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2013 14:03:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-sum-seperate-events/m-p/61397#M15167</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-14T14:03:34Z</dc:date>
    </item>
  </channel>
</rss>

