<?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 Why doesn't the kb and tcp_KBps numbers line up? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-the-kb-and-tcp-KBps-numbers-line-up/m-p/303207#M40072</link>
    <description>&lt;P&gt;I'm reading through &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.1/Troubleshooting/Aboutmetricslog"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.1/Troubleshooting/Aboutmetricslog&lt;/A&gt; trying to put together some analysis of forwarders in a timechart.  I'm noticing that the tcp_KBps numbers are always higher than I would expect them to be.  Shouldn't they essentially just be kb/60, if my bucket were 1 minute for instance?&lt;/P&gt;

&lt;P&gt;Take the following two timecharts:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd host=*hf* group=tcpin_connections hostname=*  | timechart span=1m sum(tcp_KBps) as "KBps" by host limit=50

index=_internal sourcetype=splunkd host=*hf* group=tcpin_connections hostname=*  | timechart span=1m sum(kb) as "KB" by host limit=50
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Shouldn't I expect in this case that the bottom results should be essentially 60x per host per bucket compared to the top?  That's not what I'm seeing.  I see them follow the same trends however the numbers do not add up.  For instance I will see a kb value of 676,000 and a kbps of 27,500 for the same host on the same minutely time bucket.  Shouldn't the kbps be around 11,266?  What am I missing here?&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2018 21:50:33 GMT</pubDate>
    <dc:creator>briancronrath</dc:creator>
    <dc:date>2018-01-11T21:50:33Z</dc:date>
    <item>
      <title>Why doesn't the kb and tcp_KBps numbers line up?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-the-kb-and-tcp-KBps-numbers-line-up/m-p/303207#M40072</link>
      <description>&lt;P&gt;I'm reading through &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.1/Troubleshooting/Aboutmetricslog"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.1/Troubleshooting/Aboutmetricslog&lt;/A&gt; trying to put together some analysis of forwarders in a timechart.  I'm noticing that the tcp_KBps numbers are always higher than I would expect them to be.  Shouldn't they essentially just be kb/60, if my bucket were 1 minute for instance?&lt;/P&gt;

&lt;P&gt;Take the following two timecharts:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd host=*hf* group=tcpin_connections hostname=*  | timechart span=1m sum(tcp_KBps) as "KBps" by host limit=50

index=_internal sourcetype=splunkd host=*hf* group=tcpin_connections hostname=*  | timechart span=1m sum(kb) as "KB" by host limit=50
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Shouldn't I expect in this case that the bottom results should be essentially 60x per host per bucket compared to the top?  That's not what I'm seeing.  I see them follow the same trends however the numbers do not add up.  For instance I will see a kb value of 676,000 and a kbps of 27,500 for the same host on the same minutely time bucket.  Shouldn't the kbps be around 11,266?  What am I missing here?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 21:50:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-the-kb-and-tcp-KBps-numbers-line-up/m-p/303207#M40072</guid>
      <dc:creator>briancronrath</dc:creator>
      <dc:date>2018-01-11T21:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the kb and tcp_KBps numbers line up?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-the-kb-and-tcp-KBps-numbers-line-up/m-p/303208#M40073</link>
      <description>&lt;P&gt;I think you have a units mismatch.  Kbps is kilo-bits per second.  kb is kilobytes (with no rate).&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 21:57:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-the-kb-and-tcp-KBps-numbers-line-up/m-p/303208#M40073</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-11T21:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the kb and tcp_KBps numbers line up?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-the-kb-and-tcp-KBps-numbers-line-up/m-p/303209#M40074</link>
      <description>&lt;P&gt;Are you sure about that?  From the doc:&lt;/P&gt;

&lt;P&gt;_tcp_Bps is the bytes transmitted during the metrics interval divided by the duration of the interval (in seconds)&lt;BR /&gt;
_tcp_KBps is the same value divided by 1024&lt;BR /&gt;
_tcp_avg_thruput is an average rate of bytes sent since the last time the tcp output processor was reinitialized/reconfigured. Typically this means an average since Splunk started.&lt;BR /&gt;
_tcp_KProcessed is the total number of bytes written since the processor was reinitialized/reconfigured, divided by 1024.&lt;BR /&gt;
_tcp_eps is the number of items transmitted during the interval divided by the direction of the interval (in seconds). Note that items will frequently not be events for universal/light forwarders (instead, data chunks)&lt;BR /&gt;
kb is the bytes transmitted during the metrics interval divided by 1024.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:37:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-the-kb-and-tcp-KBps-numbers-line-up/m-p/303209#M40074</guid>
      <dc:creator>briancronrath</dc:creator>
      <dc:date>2020-09-29T17:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the kb and tcp_KBps numbers line up?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-the-kb-and-tcp-KBps-numbers-line-up/m-p/303210#M40075</link>
      <description>&lt;P&gt;You're right, according to that _tcp_KBps is indeed kilobytes per second.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:37:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-the-kb-and-tcp-KBps-numbers-line-up/m-p/303210#M40075</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2020-09-29T17:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the kb and tcp_KBps numbers line up?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-the-kb-and-tcp-KBps-numbers-line-up/m-p/303211#M40076</link>
      <description>&lt;P&gt;Is it possible that the metrics intervals don't line up?  Maybe there is only one &lt;CODE&gt;kb&lt;/CODE&gt; value every 10 minutes, but &lt;CODE&gt;kbps&lt;/CODE&gt; every minute?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 22:06:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-the-kb-and-tcp-KBps-numbers-line-up/m-p/303211#M40076</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-11T22:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the kb and tcp_KBps numbers line up?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-the-kb-and-tcp-KBps-numbers-line-up/m-p/303212#M40077</link>
      <description>&lt;P&gt;By the way,actually it is opposite, &lt;CODE&gt;KBps&lt;/CODE&gt; is &lt;CODE&gt;kilo-bytes&lt;/CODE&gt; and &lt;CODE&gt;kb&lt;/CODE&gt; is &lt;CODE&gt;kilo-bit&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 04:52:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-the-kb-and-tcp-KBps-numbers-line-up/m-p/303212#M40077</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-12T04:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the kb and tcp_KBps numbers line up?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-the-kb-and-tcp-KBps-numbers-line-up/m-p/303213#M40078</link>
      <description>&lt;P&gt;I certainly would have expected &lt;CODE&gt;B&lt;/CODE&gt;=bytes, &lt;CODE&gt;b&lt;/CODE&gt;=bits, but the paste from the docs suggests otherwise.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 05:15:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-the-kb-and-tcp-KBps-numbers-line-up/m-p/303213#M40078</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-12T05:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the kb and tcp_KBps numbers line up?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-the-kb-and-tcp-KBps-numbers-line-up/m-p/303214#M40079</link>
      <description>&lt;P&gt;Sorry guys for bringing this old topic up, but as the main question remained kinda unexplained, I'd be glad to see it finally clarified. I've to deal with the same confusion about the values and it drives me crazy, as it makes thruput troubeshooting really annoying. I've got a Splunk 7.3.3 in front of me running for several hours with Metric events that are gathered within a 60s time interval:&lt;/P&gt;

&lt;PRE&gt;[...] kb=95143.5849609375, _tcp_Bps=2064499.2670550928, _tcp_KBps=2016.112565483489, _tcp_avg_thruput=2016.112565483489, _tcp_Kprocessed=95143.5849609375, _tcp_eps=2806.537391302746 [...]&lt;/PRE&gt;

&lt;P&gt;Latest docs (currently 8.01) still say what brian has quoted above:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Troubleshooting/Aboutmetricslog#Tcpout_Connections_messages" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Troubleshooting/Aboutmetricslog#Tcpout_Connections_messages&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;But no matter how I try to align _tcp_KBps  and kb (bits or bytes), they don't fit:&lt;BR /&gt;
(95143 / 8 bit) / 60 sec ~ 198 &lt;BR /&gt;
95143 / 60 sec ~ 1586, which is still far away from the 2016&lt;BR /&gt;
Funny to mention: _tcp_avg_thruput is identical to _tcp_KBps in my example, but should be measured in bytes(!) according to the documentation.&lt;/P&gt;

&lt;P&gt;Any idea, why these values don't line up and which one to trust?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-the-kb-and-tcp-KBps-numbers-line-up/m-p/303214#M40079</guid>
      <dc:creator>smichalski</dc:creator>
      <dc:date>2020-09-30T03:57:41Z</dc:date>
    </item>
  </channel>
</rss>

