<?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 calculate nic interface throughput in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/calculate-nic-interface-throughput/m-p/25969#M6794</link>
    <description>&lt;P&gt;Below is the search from the *nix app for interface throughput, but I have a question regarding the  eval command  for the timechart.  Does the “dc(time)” indicate that we are dividing by the timeframe in seconds?  Example:  For a 60 min timeframe are we dividing by 3600 seconds?&lt;/P&gt;

&lt;P&gt;How do I calculate duration, when _time is the only value available?&lt;/P&gt;

&lt;P&gt;timechart eval(sum(TX_Thruput_KB)/dc(time))&lt;/P&gt;

&lt;P&gt;index="os" sourcetype="interfaces" host=*  | multikv fields name, inetAddr, RXbytes, TXbytes  | streamstats current=f last(TXbytes) as lastTX, last(RXbytes) as lastRX by Name   | eval time=_time  | strcat Name "-" inetAddr "@" host Interface_Host  | eval RX_Thruput_KB = (lastRX-RXbytes)/1024  | eval TX_Thruput_KB = (lastTX-TXbytes)/1024  | timechart eval(sum(TX_Thruput_KB)/dc(time)) by Interface_Host&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:16:52 GMT</pubDate>
    <dc:creator>ericca</dc:creator>
    <dc:date>2020-09-28T13:16:52Z</dc:date>
    <item>
      <title>calculate nic interface throughput</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/calculate-nic-interface-throughput/m-p/25969#M6794</link>
      <description>&lt;P&gt;Below is the search from the *nix app for interface throughput, but I have a question regarding the  eval command  for the timechart.  Does the “dc(time)” indicate that we are dividing by the timeframe in seconds?  Example:  For a 60 min timeframe are we dividing by 3600 seconds?&lt;/P&gt;

&lt;P&gt;How do I calculate duration, when _time is the only value available?&lt;/P&gt;

&lt;P&gt;timechart eval(sum(TX_Thruput_KB)/dc(time))&lt;/P&gt;

&lt;P&gt;index="os" sourcetype="interfaces" host=*  | multikv fields name, inetAddr, RXbytes, TXbytes  | streamstats current=f last(TXbytes) as lastTX, last(RXbytes) as lastRX by Name   | eval time=_time  | strcat Name "-" inetAddr "@" host Interface_Host  | eval RX_Thruput_KB = (lastRX-RXbytes)/1024  | eval TX_Thruput_KB = (lastTX-TXbytes)/1024  | timechart eval(sum(TX_Thruput_KB)/dc(time)) by Interface_Host&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:16:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/calculate-nic-interface-throughput/m-p/25969#M6794</guid>
      <dc:creator>ericca</dc:creator>
      <dc:date>2020-09-28T13:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: calculate nic interface throughput</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/calculate-nic-interface-throughput/m-p/25970#M6795</link>
      <description>&lt;P&gt;solution provided by Ron Naken&lt;BR /&gt;
old -  timechart eval(sum(TX_Thruput_KB)/dc(time)) by Interface_Host &lt;BR /&gt;
new - timechart per_second(RX_Thruput_mbits) by Interface_Host &lt;/P&gt;

&lt;P&gt;Full search:&lt;BR /&gt;
index="os" sourcetype="interfaces" &lt;BR /&gt;
| multikv fields name, inetAddr, RXbytes, TXbytes &lt;BR /&gt;
| streamstats current=f last(TXbytes) as lastTX, last(RXbytes) as lastRX by Name &lt;BR /&gt;
| eval time=_time | strcat Name "-" inetAddr "@" host Interface_Host &lt;BR /&gt;
| eval RX_Thruput_KB = (lastRX-RXbytes)/1024 &lt;BR /&gt;
| eval TX_Thruput_KB = (lastTX-TXbytes)/1024 &lt;BR /&gt;
| eval RX_Thruput_mbits=(RX_Thruput_KB)&lt;EM&gt;.0078125 &lt;BR /&gt;
| eval TX_Thruput_mbits=(RX_Thruput_KB)&lt;/EM&gt;.0078125 &lt;BR /&gt;
| timechart per_second(RX_Thruput_mbits) by Interface_Host &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:16:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/calculate-nic-interface-throughput/m-p/25970#M6795</guid>
      <dc:creator>ericca</dc:creator>
      <dc:date>2020-09-28T13:16:59Z</dc:date>
    </item>
  </channel>
</rss>

