<?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: How to edit my search to create chart displaying inbound and outbound bandwidth from a switch? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161317#M45636</link>
    <description>&lt;P&gt;I think the issue is that the &lt;CODE&gt;values&lt;/CODE&gt; operator gets you a multivalued list of values, which doesn't fit nicely on a chart. In this case, since you're measuring total bandwidth, you'd be better off using &lt;CODE&gt;sum&lt;/CODE&gt; instead.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart span=1m sum(Inbound) as "Inbound Traffic (bps)", sum(Outbound) as "Outbound Traffic (bps)", sum(Bandwidth) as "Total Bandwidth (bps)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 21 Apr 2015 20:44:22 GMT</pubDate>
    <dc:creator>aweitzman</dc:creator>
    <dc:date>2015-04-21T20:44:22Z</dc:date>
    <item>
      <title>How to edit my search to create chart displaying inbound and outbound bandwidth from a switch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161314#M45633</link>
      <description>&lt;P&gt;Hello &lt;/P&gt;

&lt;P&gt;I want to display a chart to see the bandwidth, inbound and outbound, from a switch.&lt;BR /&gt;
i wrote my search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="syslog" host="192.168.0.1"| eval Bandwidth=Inbound+Outbound | timechart span=1m values(Inbound) as "Inbound Traffic (bps)", values(Outbound) as "Outbound Traffic (bps)", values(Bandwidth) as "Total Bandwidth (bps)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The axes appeared, but not the curve :((&lt;/P&gt;

&lt;P&gt;i need help please&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 10:00:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161314#M45633</guid>
      <dc:creator>Hindoo</dc:creator>
      <dc:date>2015-04-21T10:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create chart displaying inbound and outbound bandwidth from a switch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161315#M45634</link>
      <description>&lt;P&gt;What does your data look like, especially &lt;CODE&gt;Inbound&lt;/CODE&gt; and &lt;CODE&gt;outbound&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 11:42:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161315#M45634</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-04-21T11:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create chart displaying inbound and outbound bandwidth from a switch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161316#M45635</link>
      <description>&lt;P&gt;it look like down link and up link interfaces&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 19:53:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161316#M45635</guid>
      <dc:creator>Hindoo</dc:creator>
      <dc:date>2015-04-21T19:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create chart displaying inbound and outbound bandwidth from a switch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161317#M45636</link>
      <description>&lt;P&gt;I think the issue is that the &lt;CODE&gt;values&lt;/CODE&gt; operator gets you a multivalued list of values, which doesn't fit nicely on a chart. In this case, since you're measuring total bandwidth, you'd be better off using &lt;CODE&gt;sum&lt;/CODE&gt; instead.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart span=1m sum(Inbound) as "Inbound Traffic (bps)", sum(Outbound) as "Outbound Traffic (bps)", sum(Bandwidth) as "Total Bandwidth (bps)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Apr 2015 20:44:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161317#M45636</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2015-04-21T20:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create chart displaying inbound and outbound bandwidth from a switch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161318#M45637</link>
      <description>&lt;P&gt;Hi Hindoo&lt;BR /&gt;
If your searches inbound and outnound don't have a fields&lt;BR /&gt;
your request will look like below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="syslog" host="192.168.0.1"|eval Bandwidth= [|set union [search Inbound  ][search Outbound  ]  ]|timechart span=1m values(Inbound) as "Inbound Traffic (bps)",values(Outbound) as "Outbound Traffic (bps)",values(Bandwidth) as "Total Bandwidth (bps)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note that in your request the problem is about Banwith=Inbound+Outbound&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 21:03:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161318#M45637</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2015-04-21T21:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create chart displaying inbound and outbound bandwidth from a switch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161319#M45638</link>
      <description>&lt;P&gt;i tested with sum but the same result: no curve&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 21:22:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161319#M45638</guid>
      <dc:creator>Hindoo</dc:creator>
      <dc:date>2015-04-21T21:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create chart displaying inbound and outbound bandwidth from a switch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161320#M45639</link>
      <description>&lt;P&gt;Can you please post some sample events, as well as what the search result looks like before you try to chart it?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 21:28:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161320#M45639</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2015-04-21T21:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create chart displaying inbound and outbound bandwidth from a switch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161321#M45640</link>
      <description>&lt;P&gt;Sorry , I didn't really understand what I will put as a field&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 21:36:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161321#M45640</guid>
      <dc:creator>Hindoo</dc:creator>
      <dc:date>2015-04-21T21:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create chart displaying inbound and outbound bandwidth from a switch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161322#M45641</link>
      <description>&lt;P&gt;here is some events:&lt;/P&gt;

&lt;P&gt;4/21/15&lt;BR /&gt;
10:27:28.000 PM&lt;BR /&gt;
Apr 21 22:27:28 192.168.0.1 May 26 19:02:03 2000 4800G %%10IFNET/4/INTERFACE UPDOWN(t):-DevIP=192.168.0.1;   Trap 1.3.6.1.6.3.1.1.5.3: Interface 9437191 is Down, ifAdminStatus is 1, ifOperStatus is 2&lt;BR /&gt;&lt;BR /&gt;
 host =192.168.0.1&lt;BR /&gt;
source =192.168.1.203:514&lt;BR /&gt;
sourcetype =syslog&lt;/P&gt;

&lt;P&gt;4/21/15&lt;BR /&gt;
10:27:28.000 PM&lt;BR /&gt;
Apr 21 22:27:28 192.168.0.1 May 26 19:02:03 2000 4800G %%10IFNET/4/LINK UPDOWN(l):-DevIP=192.168.0.1;   GigabitEthernet1/0/8: link status is DOWN &lt;BR /&gt;
 host =192.168.0.1&lt;BR /&gt;
source =192.168.1.203:514&lt;BR /&gt;
sourcetype =syslog&lt;/P&gt;

&lt;P&gt;4/21/15&lt;BR /&gt;
10:24:58.000 PM&lt;BR /&gt;
Apr 21 22:24:58 192.168.0.1 May 26 18:59:33 2000 4800G %%10MSTP/2/PFWD(l):-DevIP=192.168.0.1; Instance 0's GigabitEthernet1/0/8 has been set to forwarding state!&lt;BR /&gt;
host =192.168.0.1&lt;BR /&gt;
source =192.168.1.203:514&lt;BR /&gt;
sourcetype =syslog&lt;/P&gt;

&lt;P&gt;4/21/15&lt;BR /&gt;
10:24:57.000 PM&lt;BR /&gt;
Apr 21 22:24:57 192.168.0.1 May 26 18:59:33 2000 4800G %%10MSTP/1/PFWD(t):-DevIP=192.168.0.1; hwPortMstiStateForwarding: Instance 0's Port 0.9437191 has been set to forwarding state!&lt;BR /&gt;
host =192.168.0.1&lt;BR /&gt;
source =192.168.1.203:514&lt;BR /&gt;
sourcetype =syslog &lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 21:40:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161322#M45641</guid>
      <dc:creator>Hindoo</dc:creator>
      <dc:date>2015-04-21T21:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create chart displaying inbound and outbound bandwidth from a switch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161323#M45642</link>
      <description>&lt;P&gt;See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Knowledge/Aboutfields"&gt;this&lt;/A&gt; very important documentation on fields. Splunk works with data that has key-value pairs with &lt;CODE&gt;fieldName=value&lt;/CODE&gt;; your data for example has a field named &lt;CODE&gt;DevIP&lt;/CODE&gt; with value &lt;CODE&gt;192.168.0.1&lt;/CODE&gt; in all your sample events. But notice how there are no fields named &lt;CODE&gt;inbound&lt;/CODE&gt; or &lt;CODE&gt;outbound&lt;/CODE&gt;? That's why your search does not deliver any results to display in your chart.&lt;BR /&gt;
If you want to use a field that is not already there in your data, you can create it, e.g. with an &lt;CODE&gt;eval&lt;/CODE&gt; expression; a very important mechanic you should read up on &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Eval"&gt;here&lt;/A&gt;. More of an advanced topic is if you frequently want to use such field that aren't there, you can use &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Knowledge/definecalcfields"&gt;calculated&lt;/A&gt; or &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Knowledge/ExtractfieldsinteractivelywithIFX"&gt;extracted fields&lt;/A&gt; instead of writing eval manually all the time.&lt;BR /&gt;
Although in this particular case, I don't see how you could calculate either inbound or outbound data as there is no field that has values we could use to calculate any throughput.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2015 05:34:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161323#M45642</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-04-22T05:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create chart displaying inbound and outbound bandwidth from a switch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161324#M45643</link>
      <description>&lt;P&gt;See @jeffland's answer. If there are other events that do have the values you want, you need to show those particular events, otherwise there's no way to get the statistics you want.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2015 12:26:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-chart-displaying-inbound-and/m-p/161324#M45643</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2015-04-22T12:26:09Z</dc:date>
    </item>
  </channel>
</rss>

