<?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: Display total in addition to individual series in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-total-in-addition-to-individual-series/m-p/28910#M1167</link>
    <description>&lt;P&gt;You can use the &lt;A href="http://www.splunk.com/base/Documentation/latest/SearchReference/Addtotals" rel="nofollow"&gt;addtotals&lt;/A&gt; or addcoltotals commands.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jan 2011 01:36:01 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2011-01-20T01:36:01Z</dc:date>
    <item>
      <title>Display total in addition to individual series</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-total-in-addition-to-individual-series/m-p/28909#M1166</link>
      <description>&lt;P&gt;I have several searches that return data broken down by host in a timechart; a simple example would be a timechart of bytes transferred by each host.  This is pretty straightforward and works fine.  Now the users are asking if we can produce another series that is the total of all the other values in the series.  We've already summary indexed several months of log files, so I prefer to find some way to do this with the existing entries, which look like this:&lt;/P&gt;

&lt;P&gt;01/18/2011 15:50:00, search_name="Do Not Click - Summary Index - Bandwidth By Server", search_now=1295388000.000, info_min_time=1295383800.000, info_max_time=1295387400.000, info_search_time=1295417075.399, ElapsedTime=175044, Node_Type=Edge, NumBytes=22418, Server="str03-dsit.se.ccp-tools-generic-nh.cds.bdn.lab.xcal.tv", report="bandwidth_by_server"&lt;/P&gt;

&lt;P&gt;If that's not possible, then can someone suggest how to enhance the existing search to also accumulate the total?  The existing search is&lt;/P&gt;

&lt;P&gt;search = index=myindex | bucket _time span=10m | stats sum(Bytes) as NumBytes, sum(Elapsed_Time) as ElapsedTime by Server&lt;/P&gt;

&lt;P&gt;As reference, here is the search that produces the timechart that we display, using the summary index&lt;/P&gt;

&lt;P&gt;index="summary" report="bandwidth_by_server" | eval Mbits = (NumBytes / .125)/1024/1024 | eval Elapsed_Secs = ElapsedTime / 1000000.000 | eval MbSec = Mbits/Elapsed_Secs | timechart usenull=f useother=f avg(MbSec) by Server&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2011 23:53:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-total-in-addition-to-individual-series/m-p/28909#M1166</guid>
      <dc:creator>beaumaris</dc:creator>
      <dc:date>2011-01-19T23:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Display total in addition to individual series</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-total-in-addition-to-individual-series/m-p/28910#M1167</link>
      <description>&lt;P&gt;You can use the &lt;A href="http://www.splunk.com/base/Documentation/latest/SearchReference/Addtotals" rel="nofollow"&gt;addtotals&lt;/A&gt; or addcoltotals commands.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2011 01:36:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-total-in-addition-to-individual-series/m-p/28910#M1167</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-01-20T01:36:01Z</dc:date>
    </item>
  </channel>
</rss>

