<?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: bandwidth utilization percentage in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742680#M240906</link>
    <description>&lt;P&gt;Ahhh... right. It's timechart with a BY clause so you'll have separate series for each UID. So if there is a small, fixed set of those UIDs you can do separate eval for each of those fields; you have to adjust the names of course. (If you have too many series your timechart will get clogged anyway).&lt;/P&gt;&lt;P&gt;Alternatively you can loop over those fields with a &lt;EM&gt;foreach&lt;/EM&gt; command.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Mar 2025 11:08:24 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2025-03-26T11:08:24Z</dc:date>
    <item>
      <title>bandwidth utilization percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742636#M240887</link>
      <description>&lt;P&gt;I have the below search and I want to modify it to get the bandwidth utilization&amp;nbsp;percentage. Whats the best way to go about that and what should I add to my search?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=snmp sourcetype=snmp_attributes Name=ifHCInOctets host=xyz&lt;BR /&gt;| streamstats current=t global=f window=2 range(Value) AS delta BY UID&lt;BR /&gt;| eval mbpsIn=delta*8/1024/1024&lt;BR /&gt;| append&lt;BR /&gt;[search index=snmp sourcetype=snmp_attributes Name=ifHCOutOctets host=xyz&lt;BR /&gt;| streamstats current=t global=f window=2 range(Value) AS delta BY UID&lt;BR /&gt;| eval mbpsOut=delta*8/1024/1024 ]&lt;BR /&gt;| search UID=1&lt;BR /&gt;| timechart span=5m per_second(mbpsIn) AS MbpsIn per_second(mbpsOut) AS MbpsOut BY UID&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 18:48:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742636#M240887</guid>
      <dc:creator>ayomotukoya</dc:creator>
      <dc:date>2025-03-25T18:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: bandwidth utilization percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742647#M240893</link>
      <description>&lt;P&gt;1. How do you define percentage?&lt;/P&gt;&lt;P&gt;2. You're overthinking your search with this append thingy. You should search for both Names and streamstats by Name. Append uses subsearch and it has its limitations so you might be getting wrong results and not even knowing it.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 23:04:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742647#M240893</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-03-25T23:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: bandwidth utilization percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742658#M240897</link>
      <description>&lt;P&gt;Percentage of bandwidth utilized. I’m thinking bytes in+bytes out/1024 then I’m stumped from there&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 06:12:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742658#M240897</guid>
      <dc:creator>ayomotukoya</dc:creator>
      <dc:date>2025-03-26T06:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: bandwidth utilization percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742659#M240898</link>
      <description>&lt;P&gt;Yes but percentage is counted from a value against some bigger total. What would be the total in your case?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 06:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742659#M240898</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-03-26T06:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: bandwidth utilization percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742661#M240899</link>
      <description>&lt;P&gt;10 mbs&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 06:59:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742661#M240899</guid>
      <dc:creator>ayomotukoya</dc:creator>
      <dc:date>2025-03-26T06:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: bandwidth utilization percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742662#M240900</link>
      <description>&lt;P&gt;10 mb&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 07:00:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742662#M240900</guid>
      <dc:creator>ayomotukoya</dc:creator>
      <dc:date>2025-03-26T07:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: bandwidth utilization percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742664#M240901</link>
      <description>&lt;P&gt;Ah, so if it's a static value, you just do something like&lt;/P&gt;&lt;PRE&gt;| eval inpercentage=Mbpsin/10*100&lt;/PRE&gt;&lt;P&gt;(or (10*1024*1024), or whatever static value you calculate it against; didn't check your scale). No magic here.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 07:50:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742664#M240901</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-03-26T07:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: bandwidth utilization percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742677#M240905</link>
      <description>&lt;P&gt;When I run the search I dont get a field for&amp;nbsp;Bytesinpercentage&lt;/P&gt;&lt;P&gt;index=snmp sourcetype=snmp_attributes Name=ifHCInOctets host=a154&lt;BR /&gt;| streamstats current=t global=f window=2 range(Value) AS delta BY UID&lt;BR /&gt;| eval mbpsIn=delta*8/1024/1024&lt;BR /&gt;| append&lt;BR /&gt;[search index=snmp sourcetype=snmp_attributes Name=ifHCOutOctets host=a154&lt;BR /&gt;| streamstats current=t global=f window=2 range(Value) AS delta BY UID&lt;BR /&gt;| eval mbpsOut=delta*8/1024/1024 ]&lt;BR /&gt;| search UID=1&lt;BR /&gt;| timechart span=5m per_second(mbpsIn) AS MbpsIn per_second(mbpsOut) AS MbpsOut BY UID&lt;BR /&gt;| eval Bytesinpercentage=MbpsIn/10*1024*1024&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 10:05:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742677#M240905</guid>
      <dc:creator>ayomotukoya</dc:creator>
      <dc:date>2025-03-26T10:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: bandwidth utilization percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742680#M240906</link>
      <description>&lt;P&gt;Ahhh... right. It's timechart with a BY clause so you'll have separate series for each UID. So if there is a small, fixed set of those UIDs you can do separate eval for each of those fields; you have to adjust the names of course. (If you have too many series your timechart will get clogged anyway).&lt;/P&gt;&lt;P&gt;Alternatively you can loop over those fields with a &lt;EM&gt;foreach&lt;/EM&gt; command.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 11:08:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742680#M240906</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-03-26T11:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: bandwidth utilization percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742684#M240909</link>
      <description>&lt;P&gt;Spl isn’t really my strong suit. Would you mind showing me how you’d do it for this UID?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 11:33:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742684#M240909</guid>
      <dc:creator>ayomotukoya</dc:creator>
      <dc:date>2025-03-26T11:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: bandwidth utilization percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742688#M240910</link>
      <description>&lt;P&gt;Well, you have this&lt;/P&gt;&lt;PRE&gt;| search UID=1&lt;/PRE&gt;&lt;P&gt;part in your search which means that you're effectively getting just two series in output.&lt;/P&gt;&lt;P&gt;And if you want the data for just this UID, it's best to filter your data as early as possible so that Splunk doesn't drag all unnecessary data along just to filter most of it out at the end. So you can completely refactor your search to something like.&lt;/P&gt;&lt;PRE&gt;index=snmp sourcetype=snmp_attributes Name IN (ifHCInOctets,ifHCOutOctets) host=xyz UID=1&lt;BR /&gt;| streamstats current=t global=f window=2 range(Value) AS delta BY&amp;nbsp; Name&lt;BR /&gt;| eval mbps=delta*8/1024/1024&lt;BR /&gt;| timechart span=5m per_second(mbps) AS Mbps BY Name&lt;/PRE&gt;&lt;P&gt;This should give you two series as output - ifHCInOctets and ifHCOutOctets.&lt;/P&gt;&lt;P&gt;You can of course&lt;/P&gt;&lt;PRE&gt;| rename ifHCInOctets as In, ifHCOutOctets as Out&lt;/PRE&gt;&lt;P&gt;for brevity.&lt;/P&gt;&lt;P&gt;And now you can just do&lt;/P&gt;&lt;PRE&gt;| eval InPerc=In/(10*1024*1024)&lt;BR /&gt;| eval OutPerc=Out/(10*1024*1024)&lt;/PRE&gt;&lt;P&gt;You can multiply it by 100 if you want actual percents.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 12:10:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/bandwidth-utilization-percentage/m-p/742688#M240910</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-03-26T12:10:46Z</dc:date>
    </item>
  </channel>
</rss>

