<?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 with overall count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-overall-count/m-p/123773#M33437</link>
    <description>&lt;P&gt;&lt;CODE&gt;...| addcoltotals labelfield=Zeit label=Total&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;might be what you're looking for, which would add an extra line like so;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Zeit         boxsw1  boxsw2  boxsw3
30.11.2013       33      12       9
31.11.2013       10      12      21
Total            43      24      30
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;addtotals&lt;/CODE&gt; is what you're looking for&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/addtotals"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/addtotals&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2013 09:51:16 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-10-31T09:51:16Z</dc:date>
    <item>
      <title>Timechart with overall count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-overall-count/m-p/123772#M33436</link>
      <description>&lt;P&gt;Hello Answers-Base,&lt;/P&gt;

&lt;P&gt;I have a timechart where i see the statistics over some softwareversions --&amp;gt; see example&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;searchstring | timechart dc(id) by boxsw | rename _time AS Zeit | convert timeformat="%d.%m.%Y" ctime(Zeit)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Now I see a diagramm with the softwareversions in the field, ordnered by time - so far, so good. But I need one more line, that shows how much results were there over time, means all results added.&lt;/P&gt;

&lt;P&gt;I just tried something like timechart dc(id) by boxsw, count by id, but Mr Splunk tells me, that the argument count is invalid. Btw I use (and have to use) Splunk 5.0.2.&lt;/P&gt;

&lt;P&gt;Do you have a solution?&lt;/P&gt;

&lt;P&gt;Thanks and greeting from Germany&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt; according to the answer from kristian.kolb:&lt;BR /&gt;
I think I did not outline my idea clearly.&lt;/P&gt;

&lt;P&gt;The table should look like:&lt;BR /&gt;
Zeit       boxsw1  boxsw2  allsw&lt;BR /&gt;
30.10.2013      2       5      7&lt;BR /&gt;
31.10.2013      7      20     27&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 09:42:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-overall-count/m-p/123772#M33436</guid>
      <dc:creator>yAlff</dc:creator>
      <dc:date>2013-10-31T09:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with overall count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-overall-count/m-p/123773#M33437</link>
      <description>&lt;P&gt;&lt;CODE&gt;...| addcoltotals labelfield=Zeit label=Total&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;might be what you're looking for, which would add an extra line like so;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Zeit         boxsw1  boxsw2  boxsw3
30.11.2013       33      12       9
31.11.2013       10      12      21
Total            43      24      30
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;addtotals&lt;/CODE&gt; is what you're looking for&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/addtotals"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/addtotals&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 09:51:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-overall-count/m-p/123773#M33437</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-10-31T09:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with overall count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-overall-count/m-p/123774#M33438</link>
      <description>&lt;P&gt;Thank you for this answer, but that's actually not what I need. I updated my question.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 11:12:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-overall-count/m-p/123774#M33438</guid>
      <dc:creator>yAlff</dc:creator>
      <dc:date>2013-10-31T11:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with overall count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-overall-count/m-p/123775#M33439</link>
      <description>&lt;P&gt;see update above&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 11:30:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-overall-count/m-p/123775#M33439</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-10-31T11:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with overall count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-overall-count/m-p/123776#M33440</link>
      <description>&lt;P&gt;In general, you could run two searches over the same time range with the same bucket span and join them together over _time. For your example from above&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | timechart dc(id) by boxsw, count by id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it could look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | timechart dc(id) by boxsw | join _time [search ... | timechart count by id]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You'd get one row per bucket with the columns from both searches.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:20:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-overall-count/m-p/123776#M33440</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-10-31T13:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with overall count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-overall-count/m-p/123777#M33441</link>
      <description>&lt;P&gt;Thank you, that's what I was looking for!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:47:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-overall-count/m-p/123777#M33441</guid>
      <dc:creator>yAlff</dc:creator>
      <dc:date>2013-10-31T13:47:45Z</dc:date>
    </item>
  </channel>
</rss>

