<?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 calculate bandwidth utilization on an snmp interface from one point to another in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142078#M184911</link>
    <description>&lt;P&gt;Hello Woodcook,&lt;/P&gt;

&lt;P&gt;So, i tried the search you sent- But, there are no data or &lt;BR /&gt;
sparkline data coming up?&lt;/P&gt;</description>
    <pubDate>Mon, 03 Aug 2015 21:10:10 GMT</pubDate>
    <dc:creator>bidahor13</dc:creator>
    <dc:date>2015-08-03T21:10:10Z</dc:date>
    <item>
      <title>How to calculate bandwidth utilization on an snmp interface from one point to another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142067#M184900</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I keep getting negative values on my chart when i run my search below.All I'm trying to do is calculate the bandwidth utilization  from my switches to another. Put into consideration - assuming the switches are in different building location. I'' ll be glad if someone could help me out.&lt;/P&gt;

&lt;P&gt;Here is my search below:&lt;/P&gt;

&lt;P&gt;index=snmp  dst_device="mdf1"   src_device="mdf2"&lt;BR /&gt;&lt;BR /&gt;
| delta snmpIfInOctets as transferedIn|delta snmpIfOutOctets as transferedOut&lt;BR /&gt;
|delta _time as period&lt;BR /&gt;
| eval transferedBitsIn=transferedIn*8/period|eval transferedBitsOut=transferedOut*8/period| fields + _time, source, snmpIfSpeed, transferedBitsIn, transferedBitsOut| timechart span=10m sum(transferedBitsIn) as Input sum(transferedBitsOut) as output by source&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:48:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142067#M184900</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2020-09-29T06:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate bandwidth utilization on an snmp interface from one point to another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142068#M184901</link>
      <description>&lt;P&gt;Could you provide some sample logs on how your events looks like?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 21:36:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142068#M184901</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-07-29T21:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate bandwidth utilization on an snmp interface from one point to another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142069#M184902</link>
      <description>&lt;P&gt;Hi somesoni2,&lt;/P&gt;

&lt;P&gt;here a line of my log file from one of my switches :&lt;/P&gt;

&lt;P&gt;1199999: Jul 29 22:33:01: %SEC-1-IP------: list VLAN64_RS_Out permitted udp  (TenGigabitEthernet5/1 ) -&amp;gt; (port number), 1 packet&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:52:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142069#M184902</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2020-09-29T06:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate bandwidth utilization on an snmp interface from one point to another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142070#M184903</link>
      <description>&lt;P&gt;Too many deltas.  Each event already has the bytes transferred; you just need how long it took.  Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=snmp dst_device="mdf1" src_device="mdf2" |delta _time as period | eval transferedBitsIn=snmpIfInOctets*8/period | eval transferedBitsOut=snmpIfOutOctets*8/period | timechart span=10m sum(transferedBitsIn) as Input sum(transferedBitsOut) as output by source
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jul 2015 16:22:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142070#M184903</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-30T16:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate bandwidth utilization on an snmp interface from one point to another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142071#M184904</link>
      <description>&lt;P&gt;Hi Woodcook,&lt;/P&gt;

&lt;P&gt;Thanks for the feedback. I think we are almost there. But, for some reason I keep getting this error message whenever I try to populate my graph when running the search over 7 days or 30 days : See below&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;These results may be truncated. This visualization is configured to display a maximum of 1000 results per series, and that limit has been reached.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Also, why do I get negative value for each  link ? I'm more concerned about getting the aggregate bandwidth usage over 30 days .&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2015 16:20:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142071#M184904</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2015-07-31T16:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate bandwidth utilization on an snmp interface from one point to another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142072#M184905</link>
      <description>&lt;P&gt;I don't know what you mean by &lt;CODE&gt;each link&lt;/CODE&gt; but if all of your values are negative, you can fix it by reversing the events like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=snmp dst_device="mdf1" src_device="mdf2" |reverse | delta _time as period | eval transferedBitsIn=snmpIfInOctets*8/period | eval transferedBitsOut=snmpIfOutOctets*8/period | timechart span=10m sum(transferedBitsIn) as Input sum(transferedBitsOut) as output by source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As far as the truncatoin warning, it is just as it says: you need to be sure to limit the number of points on the graph to &amp;lt; 1000.  To do this, you need to enlarge your timechart from &lt;CODE&gt;span=10m&lt;/CODE&gt; to something like &lt;CODE&gt;span=1h&lt;/CODE&gt; (or maybe even larger for 30 days).  If you need aggregate, why are you using &lt;CODE&gt;timechart&lt;/CODE&gt;?  Why are you not generating a single value like this with &lt;CODE&gt;stats&lt;/CODE&gt;?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=snmp dst_device="mdf1" src_device="mdf2" |reverse | delta _time as period | eval transferedBitsIn=snmpIfInOctets*8/period | eval transferedBitsOut=snmpIfOutOctets*8/period | stats sum(transferedBitsIn) as Input sum(transferedBitsOut) as output by source
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jul 2015 16:55:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142072#M184905</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-31T16:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate bandwidth utilization on an snmp interface from one point to another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142073#M184906</link>
      <description>&lt;P&gt;So, this is what I'm trying to achieve : I want o calculate the aggregate bandwidth(xxGB/s) for each link (for instance A1-MDF1 -&amp;gt; B2-MDF1) .so, i can evaluate a 30 days 95th percent utilization on each link ( like A1-MDF1 -&amp;gt; B2-MDF1) . Hope that helps.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2015 17:27:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142073#M184906</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2015-07-31T17:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate bandwidth utilization on an snmp interface from one point to another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142074#M184907</link>
      <description>&lt;P&gt;Why are you doing it with such discrete calculations?  Why not do it in a &lt;EM&gt;much&lt;/EM&gt; simpler and broader way, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=snmp | eval link=if(src_device&amp;lt;dst_device, src_device, dst_device) . "&amp;lt;-&amp;gt;" . if(src_device&amp;lt;dst_device, dst_device, src_device) | stats earliest(_time) AS firstTime latest(_time) AS lastTime sum(snmpIfInOctets) as InputBits sum(snmpIfOutOctets) as outputBits by link | eval TotalBytes = 8*(inputBits + outputBits) | eval Bandwidth=TotalBytes/(lastTime-firstTime)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jul 2015 18:08:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142074#M184907</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-31T18:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate bandwidth utilization on an snmp interface from one point to another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142075#M184908</link>
      <description>&lt;P&gt;This looks good by the the way . Is there a way to add a spark-line to show the bandwidth utilization for each link (src_device, dst_device)?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:51:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142075#M184908</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2020-09-29T06:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate bandwidth utilization on an snmp interface from one point to another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142076#M184909</link>
      <description>&lt;P&gt;Oops, what about the bandwidth result? It wasn't used in your suggested search above?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2015 21:33:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142076#M184909</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2015-07-31T21:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate bandwidth utilization on an snmp interface from one point to another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142077#M184910</link>
      <description>&lt;P&gt;The search that I gave you calculates a single bandwidth value for each "link" but you have to "use" it as you see fit (I don't know what your end goal is).  As far as sparkline, you can do that like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=snmp | eval link=if(src_device&amp;lt;dst_device, src_device, dst_device) . "&amp;lt;-&amp;gt;" . if(src_device&amp;lt;dst_device, dst_device, src_device) | bucket _time span=1h | stats earliest(_time) AS firstTime latest(_time) AS lastTime sum(snmpIfInOctets) as InputBits sum(snmpIfOutOctets) as outputBits by link _time | eval TotalBytes = 8*(inputBits + outputBits) | eval Bandwidth=TotalBytes/(lastTime-firstTime) | stats sparkline(avg(Bandwidth),1h) as BandwidthPerHour
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jul 2015 22:39:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142077#M184910</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-31T22:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate bandwidth utilization on an snmp interface from one point to another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142078#M184911</link>
      <description>&lt;P&gt;Hello Woodcook,&lt;/P&gt;

&lt;P&gt;So, i tried the search you sent- But, there are no data or &lt;BR /&gt;
sparkline data coming up?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2015 21:10:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142078#M184911</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2015-08-03T21:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate bandwidth utilization on an snmp interface from one point to another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142079#M184912</link>
      <description>&lt;P&gt;Your comment was truncated but the only way that I can see for it not to work is if you did not run it for more than an hour.  Try changing the &lt;CODE&gt;1h&lt;/CODE&gt; to &lt;CODE&gt;1m&lt;/CODE&gt; instead.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2015 21:13:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142079#M184912</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-03T21:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate bandwidth utilization on an snmp interface from one point to another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142080#M184913</link>
      <description>&lt;P&gt;if you want to search more than an hour use &lt;CODE&gt;1mon&lt;/CODE&gt; instead of &lt;CODE&gt;1m&lt;/CODE&gt; - &lt;CODE&gt;m&lt;/CODE&gt; is for minutes &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Search/Specifytimemodifiersinyoursearch#Specify_relative_time_ranges_in_your_search"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Search/Specifytimemodifiersinyoursearch#Specify_relative_time_ranges_in_your_search&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2015 21:17:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142080#M184913</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-08-03T21:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate bandwidth utilization on an snmp interface from one point to another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142081#M184914</link>
      <description>&lt;P&gt;Same problem no report coming up on Splunk. Just data on  the Events.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2015 22:02:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142081#M184914</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2015-08-03T22:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate bandwidth utilization on an snmp interface from one point to another</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142082#M184915</link>
      <description>&lt;P&gt;You should probably start over with a new question so that you can start with a concise description and so that more people will take a fresh look at it.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2015 22:04:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-bandwidth-utilization-on-an-snmp-interface-from/m-p/142082#M184915</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-03T22:04:03Z</dc:date>
    </item>
  </channel>
</rss>

