<?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 the percentage bandwidth utilization for both incoming and outgoing traffics from a switch/router? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176809#M35482</link>
    <description>&lt;P&gt;Your link "works" but shows a useless image.&lt;/P&gt;

&lt;P&gt;How much is this related to this other question?&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/289809/how-to-calculate-bandwidth-utilization-on-an-snmp.html"&gt;http://answers.splunk.com/answers/289809/how-to-calculate-bandwidth-utilization-on-an-snmp.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Aug 2015 20:51:37 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-08-20T20:51:37Z</dc:date>
    <item>
      <title>how to calculate the percentage bandwidth utilization for both incoming and outgoing traffics from a switch/router?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176799#M35472</link>
      <description>&lt;P&gt;Trying to calculate the percentage bandwidth  utilization on each link -How can I achieve that?&lt;/P&gt;

&lt;P&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=5s sum(transferedBitsIn) as Input sum(transferedBitsOut) as output by source&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:00:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176799#M35472</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2020-09-29T07:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate the percentage bandwidth utilization for both incoming and outgoing traffics from a switch/router?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176800#M35473</link>
      <description>&lt;P&gt;Can you show examples of the source event data?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 18:56:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176800#M35473</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-08-18T18:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate the percentage bandwidth utilization for both incoming and outgoing traffics from a switch/router?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176801#M35474</link>
      <description>&lt;P&gt;Hi bidahor13&lt;/P&gt;

&lt;P&gt;A couple of observations:&lt;BR /&gt;
 1. It looks like the transferedBitsIn and transferedBitsOut fields are calculating a per second value. If this the case, then using average would be more appropriate than sum in your timechart&lt;BR /&gt;
 2. If you want to calculate a percentage utilisation, then you need to divide bandwidth used by bandwidth total&lt;/P&gt;

&lt;P&gt;It would be a good to get a sample of data so we can give more specific pointers&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 02:35:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176801#M35474</guid>
      <dc:creator>sajbutler</dc:creator>
      <dc:date>2015-08-19T02:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate the percentage bandwidth utilization for both incoming and outgoing traffics from a switch/router?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176802#M35475</link>
      <description>&lt;P&gt;&lt;A href="http://answers.splunk.com/storage/temp/56172-bandwidth-new.gif"&gt;http://answers.splunk.com/storage/temp/56172-bandwidth-new.gif&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 20:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176802#M35475</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2015-08-19T20:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate the percentage bandwidth utilization for both incoming and outgoing traffics from a switch/router?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176803#M35476</link>
      <description>&lt;P&gt;&lt;A href="http://answers.splunk.com/storage/temp/56172-bandwidth-new.gif"&gt;http://answers.splunk.com/storage/temp/56172-bandwidth-new.gif&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 20:56:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176803#M35476</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2015-08-19T20:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate the percentage bandwidth utilization for both incoming and outgoing traffics from a switch/router?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176804#M35477</link>
      <description>&lt;P&gt;index=snmp | eval link=if(src_device previousIn , currentIn, previousIn)                                                                                                                                                                        | eval current1_Out = if( currentOut &amp;gt; previousOut , currentOut, previousOut)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | eval current2_In = (maxValue + current1_In)/period                                                                                                                                                                                             | eval current2_Out = (maxValue + current1_Out)/period                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | eval transferredBitsIn_kByte=round((current2_In)/1000 ,1)                                                                                                                                                                          | eval transferredBitsOut_kByte=round((current2_Out)/1000,1)                                                                                                                                                                                                                    | timechart span=48s avg(transferredBitsOut_kByte) AS Tx_OUT  avg(transferredBitsIn_kByte) AS Tx_IN by link | eval Tx_OUT = round(Tx_OUT,1) | eval Tx_IN = round(Tx_IN , 1)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:05:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176804#M35477</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2020-09-29T07:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate the percentage bandwidth utilization for both incoming and outgoing traffics from a switch/router?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176805#M35478</link>
      <description>&lt;P&gt;Made some changes on my last  SPL  - does the data search look accurate to generate  the bandwidth data and bits transferred by each link? If sit does- how do i calculate the percentage utilization for each link?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 21:02:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176805#M35478</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2015-08-19T21:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate the percentage bandwidth utilization for both incoming and outgoing traffics from a switch/router?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176806#M35479</link>
      <description>&lt;P&gt;See the snap shot below:&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 21:02:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176806#M35479</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2015-08-19T21:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate the percentage bandwidth utilization for both incoming and outgoing traffics from a switch/router?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176807#M35480</link>
      <description>&lt;P&gt;Sorry, I can't see the link below. Its a broken link for me&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 21:29:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176807#M35480</guid>
      <dc:creator>sajbutler</dc:creator>
      <dc:date>2015-08-19T21:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate the percentage bandwidth utilization for both incoming and outgoing traffics from a switch/router?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176808#M35481</link>
      <description>&lt;P&gt;&lt;A href="http://answers.splunk.com/storage/temp/56172-bandwidth-new.gif"&gt;http://answers.splunk.com/storage/temp/56172-bandwidth-new.gif&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2015 16:09:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176808#M35481</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2015-08-20T16:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate the percentage bandwidth utilization for both incoming and outgoing traffics from a switch/router?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176809#M35482</link>
      <description>&lt;P&gt;Your link "works" but shows a useless image.&lt;/P&gt;

&lt;P&gt;How much is this related to this other question?&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/289809/how-to-calculate-bandwidth-utilization-on-an-snmp.html"&gt;http://answers.splunk.com/answers/289809/how-to-calculate-bandwidth-utilization-on-an-snmp.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2015 20:51:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176809#M35482</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-20T20:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate the percentage bandwidth utilization for both incoming and outgoing traffics from a switch/router?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176810#M35483</link>
      <description>&lt;P&gt;not related!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2015 21:23:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176810#M35483</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2015-08-20T21:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate the percentage bandwidth utilization for both incoming and outgoing traffics from a switch/router?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176811#M35484</link>
      <description>&lt;P&gt;Getting a HTTP Status 403 error when clicking on the link&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2015 23:07:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176811#M35484</guid>
      <dc:creator>sajbutler</dc:creator>
      <dc:date>2015-08-20T23:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate the percentage bandwidth utilization for both incoming and outgoing traffics from a switch/router?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176812#M35485</link>
      <description>&lt;P&gt;hi sajbutler - I just sent you the link .Let me know if it helps thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2015 23:08:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176812#M35485</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2015-08-20T23:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate the percentage bandwidth utilization for both incoming and outgoing traffics from a switch/router?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176813#M35486</link>
      <description>&lt;P&gt;Given your search, since that's all I can see, I can make a few remarks on how to accomplish this.&lt;/P&gt;

&lt;P&gt;One method is to do some math directly in the timechart command.  In this case, something like this might work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| timechart span=5s sum(transferedBitsIn) as Input, sum(transferedBitsOut) as output, eval(sum(transferedBitsIn)/100000000) as Percentage_in by source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or, create a new field with the value, then use that.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| eval Max_Bandwidth=100000000 | timechart span=5s sum(transferedBitsIn) as Input, sum(transferedBitsOut) as output, eval(sum(transferedBitsIn)/sum(Max_Bandwidth)) as Percentage_in by source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In either case, you'll have to provide your own values, and probably do a little cleanup on making it show up right.  My GUESS is that you'll actually need  &lt;CODE&gt;eval(sum(transferedBitsIn)/avg(Max_Bandwidth))&lt;/CODE&gt; instead of sum(Max_Bandwidth), but with the problems seeing your raw data (or even a sample), I'm not sure.  &lt;/P&gt;

&lt;P&gt;One final caveat, I probably did my division backwards.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2015 23:52:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176813#M35486</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2015-08-20T23:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate the percentage bandwidth utilization for both incoming and outgoing traffics from a switch/router?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176814#M35487</link>
      <description>&lt;P&gt;lol..thanks rich7177, I will try it out.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2015 15:20:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176814#M35487</guid>
      <dc:creator>bidahor13</dc:creator>
      <dc:date>2015-08-21T15:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate the percentage bandwidth utilization for both incoming and outgoing traffics from a switch/router?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176815#M35488</link>
      <description>&lt;P&gt;You might also have access to something like the snmp OID for ifSpeed (I believe 1.3.6.1.2.1.2.2.1.5, but could be slightly elsewhere). If you have that, and it reflects the connection speed, you could use that instead of creating your own "Max_Bandwidth".   It's worth a look.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Aug 2015 00:26:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-calculate-the-percentage-bandwidth-utilization-for-both/m-p/176815#M35488</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2015-08-22T00:26:23Z</dc:date>
    </item>
  </channel>
</rss>

