<?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: Chart of multiple data series in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Chart-of-multiple-data-series/m-p/24819#M738</link>
    <description>&lt;P&gt;Thanks for your help Jon! Moving the evals for capacity, eng, &amp;amp; aug worked a treat... and combining the hostname &amp;amp; metric field into one is brilliant! We are almost there now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;However, we are still using timechart with a split-by-clause on the new metric field... so can we stack them all together to show overall bandwidth usage for the port-channels across all relevant hostnames?&lt;/P&gt;

&lt;P&gt;Here is the current screenshot: &lt;A href="https://dl.dropbox.com/u/1193777/splunk-media-poc3.png"&gt;https://dl.dropbox.com/u/1193777/splunk-media-poc3.png&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What we need is all of the cht* and ken* metrics stacked to show overall bandwidth usage &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;/P&gt;

&lt;P&gt;Luke.&lt;/P&gt;</description>
    <pubDate>Sat, 09 Feb 2013 00:51:22 GMT</pubDate>
    <dc:creator>lukeh</dc:creator>
    <dc:date>2013-02-09T00:51:22Z</dc:date>
    <item>
      <title>Chart of multiple data series</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Chart-of-multiple-data-series/m-p/24817#M736</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to craft a search to chart bandwidth utilization across multiple switches and multiple interfaces, however I have run into a few issues:&lt;/P&gt;

&lt;P&gt;1/ I can chart one switch with multiple interfaces, as per the example below... however if I want to add some additional fields to chart (eg. capacity, engineering_limit, &amp;amp; augmentation_limit) they are plotted multiple times per metric &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
ie. those additional fields should only be plotted once, not for each interface (aka metric).&lt;/P&gt;

&lt;P&gt;2/ Following on from above, I actually want to chart &lt;EM&gt;multiple&lt;/EM&gt; switches with multiple interfaces, however timechart cannot accept multiple split-by-clause's &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
I have tried using xyseries (as per &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Search/Chartmultipledataseries" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Search/Chartmultipledataseries&lt;/A&gt; ) but I can't figure out how to use it with streamstats and at the same time plot the delta for the interface usage with a per_second calculation.&lt;/P&gt;

&lt;P&gt;3/ The interfaces should actually be stacked, but this doesn't seem to work when using timechart with a split-by-clause &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I am running on Splunk 5.0.1. Any help is greatly appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mediacap ( hostname="cht-cdn6506-1" ) ( metric="ifInOctets_port-channel2" OR metric="ifInOctets_port-channel3" ) 
| streamstats current=t global=f window=2 earliest(value) as curr latest(value) as next by metric 
| eval delta=next-curr 
| eval inkilobits=(delta*8/1000) 
| eval capacity=(( 47.3 )*1024*1024) 
| eval eng=(capacity*(( 90 )/100)) 
| eval aug=(capacity*(( 70 )/100)) 
| timechart span=5m per_second(inkilobits) as in_kbps
max(capacity) as capacity
max(eng) as eng
max(aug) as aug
by metric
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="https://dl.dropbox.com/u/1193777/splunk-multi.png" alt="chart screenshot" /&gt;&lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;/P&gt;

&lt;P&gt;Luke &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:16:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Chart-of-multiple-data-series/m-p/24817#M736</guid>
      <dc:creator>lukeh</dc:creator>
      <dc:date>2020-09-28T13:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of multiple data series</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Chart-of-multiple-data-series/m-p/24818#M737</link>
      <description>&lt;P&gt;For the 1st part of the question, move this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval capacity=(( 47.3 )*1024*1024) 
| eval eng=(capacity*(( 90 )/100)) 
| eval aug=(capacity*(( 70 )/100)) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After the timechart command, and remove theis from the timechart command :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;max(capacity) as capacity
max(eng) as eng
max(aug) as aug
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How exactly do you want the graph to look in 2 + 3 ?&lt;/P&gt;

&lt;P&gt;For each time slice, have multiple columns representing the hosts, with each column having stacked interfaces ?&lt;/P&gt;

&lt;P&gt;Not sure thats possible out the box.&lt;/P&gt;

&lt;P&gt;Also, You'd need 2 Y axis on your graph to plot the 'capacity','aug' fields seperately to the stacked columns. See &lt;A href="http://splunk-base.splunk.com/answers/65910/combined-chart-types-in-a-single-chart-display"&gt;here&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;A quick way to have multiple switch/interfaces would be to start the search like this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mediacap (metric="ifInOctets_port-channel2" OR metric="ifInOctets_port-channel3" ) | eval metric=hostname.":".metric | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Feb 2013 14:16:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Chart-of-multiple-data-series/m-p/24818#M737</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-02-08T14:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of multiple data series</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Chart-of-multiple-data-series/m-p/24819#M738</link>
      <description>&lt;P&gt;Thanks for your help Jon! Moving the evals for capacity, eng, &amp;amp; aug worked a treat... and combining the hostname &amp;amp; metric field into one is brilliant! We are almost there now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;However, we are still using timechart with a split-by-clause on the new metric field... so can we stack them all together to show overall bandwidth usage for the port-channels across all relevant hostnames?&lt;/P&gt;

&lt;P&gt;Here is the current screenshot: &lt;A href="https://dl.dropbox.com/u/1193777/splunk-media-poc3.png"&gt;https://dl.dropbox.com/u/1193777/splunk-media-poc3.png&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What we need is all of the cht* and ken* metrics stacked to show overall bandwidth usage &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;/P&gt;

&lt;P&gt;Luke.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Feb 2013 00:51:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Chart-of-multiple-data-series/m-p/24819#M738</guid>
      <dc:creator>lukeh</dc:creator>
      <dc:date>2013-02-09T00:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of multiple data series</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Chart-of-multiple-data-series/m-p/24820#M739</link>
      <description>&lt;P&gt;I was able to use 'addtotals' to get the combined total &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks again for your help Jon! You taught me a couple of things and put me on the right track to Ninjaville &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Feb 2013 23:05:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Chart-of-multiple-data-series/m-p/24820#M739</guid>
      <dc:creator>lukeh</dc:creator>
      <dc:date>2013-02-10T23:05:05Z</dc:date>
    </item>
  </channel>
</rss>

