<?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: Delta of overflowing counter for Bandwidth measurement in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Delta-of-overflowing-counter-for-Bandwidth-measurement/m-p/126916#M34383</link>
    <description>&lt;P&gt;Well. But dearly it produces false results. Each time the counter crosses the maximum, delta doesn't count "from old to max and from min to current". But thats, what it should do. Delta instead works and calculates: "Value short before max - X = Current value" and returns the X. &lt;BR /&gt;
Unfortunately I need it somehow different.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jul 2014 21:37:24 GMT</pubDate>
    <dc:creator>splunkbeginner2</dc:creator>
    <dc:date>2014-07-01T21:37:24Z</dc:date>
    <item>
      <title>Delta of overflowing counter for Bandwidth measurement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Delta-of-overflowing-counter-for-Bandwidth-measurement/m-p/126914#M34381</link>
      <description>&lt;P&gt;Hey there, &lt;/P&gt;

&lt;P&gt;today seems for me like the morning of many questions. &lt;/P&gt;

&lt;P&gt;So I have an other problem: I want to measure the bandwidth with snmp. The Router returns an 32bit counter for octets of bits transmitted. At some very powerful connections this results in that point, that this counter reaches it ends and starts at is negative value again.. this is quite bad, because it destroys my hole graph (every few seconds you have this drop and the real rising isn't visible anymore). &lt;BR /&gt;
The graph should display the difference of that counter to the counter of the event before. Therefore I am using the |delta command to get the difference to the last one. How could I create an query that is failure safe of filter such events out? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=snmp source="MyConnection"| sort 0 _time |delta IfInOctets as in|timechart sum(in) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(It would be great, if you could offer a performant solution, but anything that works helps). &lt;BR /&gt;
Anyway: Thank you for your support! &lt;/P&gt;

&lt;P&gt;Regards, &lt;BR /&gt;
Xantor&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2014 16:51:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Delta-of-overflowing-counter-for-Bandwidth-measurement/m-p/126914#M34381</guid>
      <dc:creator>splunkbeginner2</dc:creator>
      <dc:date>2014-07-01T16:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delta of overflowing counter for Bandwidth measurement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Delta-of-overflowing-counter-for-Bandwidth-measurement/m-p/126915#M34382</link>
      <description>&lt;P&gt;The search is currently working right? Are you looking for alternatives to your 'delta' solution?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2014 20:33:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Delta-of-overflowing-counter-for-Bandwidth-measurement/m-p/126915#M34382</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-01T20:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Delta of overflowing counter for Bandwidth measurement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Delta-of-overflowing-counter-for-Bandwidth-measurement/m-p/126916#M34383</link>
      <description>&lt;P&gt;Well. But dearly it produces false results. Each time the counter crosses the maximum, delta doesn't count "from old to max and from min to current". But thats, what it should do. Delta instead works and calculates: "Value short before max - X = Current value" and returns the X. &lt;BR /&gt;
Unfortunately I need it somehow different.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2014 21:37:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Delta-of-overflowing-counter-for-Bandwidth-measurement/m-p/126916#M34383</guid>
      <dc:creator>splunkbeginner2</dc:creator>
      <dc:date>2014-07-01T21:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Delta of overflowing counter for Bandwidth measurement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Delta-of-overflowing-counter-for-Bandwidth-measurement/m-p/126917#M34384</link>
      <description>&lt;P&gt;Maybe something like this?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=snmp source="MyConnection" | sort 0 _time | delta IfInOctets as in | eval max=pow(2,32) | eval min=0 | eval in_corrected=if(in&amp;lt;0,max-min+in,in) | timechart sum(in_corrected)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;(You can leave out the &lt;CODE&gt;eval max&lt;/CODE&gt; and &lt;CODE&gt;eval min&lt;/CODE&gt; clauses and just plug the numbers directly into the "then" clause of the &lt;CODE&gt;if&lt;/CODE&gt; statement if you want - I just did it this way here for readability purposes.)&lt;/P&gt;

&lt;P&gt;This is not fail-safe because it cannot take into account the situation where the delta is in reality greater than &lt;CODE&gt;max&lt;/CODE&gt;, because that reality cannot be reflected in the statistics you're gathering. But except for that caveat, this might be your best shot.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2014 16:39:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Delta-of-overflowing-counter-for-Bandwidth-measurement/m-p/126917#M34384</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2014-07-09T16:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Delta of overflowing counter for Bandwidth measurement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Delta-of-overflowing-counter-for-Bandwidth-measurement/m-p/126918#M34385</link>
      <description>&lt;P&gt;also look at 1.3.6.1.2.1.31.1.1.1 mib. It has a 64 bit counter for the interface value, much less change. &lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2014 20:47:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Delta-of-overflowing-counter-for-Bandwidth-measurement/m-p/126918#M34385</guid>
      <dc:creator>dpaupore</dc:creator>
      <dc:date>2014-07-11T20:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Delta of overflowing counter for Bandwidth measurement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Delta-of-overflowing-counter-for-Bandwidth-measurement/m-p/126919#M34386</link>
      <description>&lt;P&gt;Thank you, I know about this, but not every device is able to return a 64bit Values. Some just have 32 bits...&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2014 18:25:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Delta-of-overflowing-counter-for-Bandwidth-measurement/m-p/126919#M34386</guid>
      <dc:creator>splunkbeginner2</dc:creator>
      <dc:date>2014-07-16T18:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Delta of overflowing counter for Bandwidth measurement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Delta-of-overflowing-counter-for-Bandwidth-measurement/m-p/126920#M34387</link>
      <description>&lt;P&gt;I meanwhile used a slightly different solution, but I think yours would even have been better. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2014 18:26:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Delta-of-overflowing-counter-for-Bandwidth-measurement/m-p/126920#M34387</guid>
      <dc:creator>splunkbeginner2</dc:creator>
      <dc:date>2014-07-16T18:26:56Z</dc:date>
    </item>
  </channel>
</rss>

