<?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: Difference between two perfmon counters from the same source to identify bottleneck in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Difference-between-two-perfmon-counters-from-the-same-source-to/m-p/541639#M153353</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/157728"&gt;@rholm01&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This may work:&lt;/P&gt;&lt;P&gt;| streamstats current=f last(Value) as previous_Value by host counter&lt;BR /&gt;| eval delta_Value=round(Value - previous_Value, 3)&lt;/P&gt;&lt;P&gt;If you want the absolute difference:&lt;/P&gt;&lt;P&gt;| eval delta_Value=round(abs(Value - previous_Value), 3)&lt;/P&gt;&lt;P&gt;If you find Splunk's rounded values disagreeing with exact calculations, you can tell Splunk to use exact math to the limits of the operating environment's floating point precision:&lt;/P&gt;&lt;P&gt;| eval delta_Value=exact(round(abs(Value - previous_Value), 3))&lt;/P&gt;</description>
    <pubDate>Sat, 27 Feb 2021 19:47:17 GMT</pubDate>
    <dc:creator>tscroggins</dc:creator>
    <dc:date>2021-02-27T19:47:17Z</dc:date>
    <item>
      <title>Difference between two perfmon counters from the same source to identify bottleneck</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difference-between-two-perfmon-counters-from-the-same-source-to/m-p/541582#M153340</link>
      <description>&lt;P&gt;Counter 1 - Perfmon: Inbound Data rate&lt;/P&gt;&lt;P&gt;Counter 2&amp;nbsp; - Perfmon:Outbound Data rate&lt;/P&gt;&lt;P&gt;source="Perfmon:PostilionPostbridgeInterchanges"&lt;/P&gt;&lt;P&gt;My values look something like this:&amp;nbsp; &lt;U&gt;&lt;A href="https://splunk.safeway.com:8000/en-US/app/search/search?s=%2FservicesNS%2Fnobody%2Fsearch%2Fsaved%2Fsearches%2FPerfmon%253APostilionPostbridgeInterchanges%2520--Remote%2520arrival%2520rate&amp;amp;display.page.search.mode=verbose&amp;amp;dispatch.sample_ratio=1&amp;amp;workload_pool=&amp;amp;q=search%20index%3Dperfmon%20sourcetype%3Djmx%20host%20IN%20(pnv0148f4*%2Cpnv0148ef*)%20source%3D%22Perfmon%3APostilionPostbridgeInterchanges%22&amp;amp;earliest=-3d%40h&amp;amp;latest=now&amp;amp;display.page.search.tab=events&amp;amp;display.general.type=events&amp;amp;sid=1614371482.2015463#" target="_blank" rel="noopener"&gt;0.007956853689073186&lt;/A&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I am looking for the difference between the two counters and to reduce the number to 3 places behind the decimal point, if possible.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 20:39:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difference-between-two-perfmon-counters-from-the-same-source-to/m-p/541582#M153340</guid>
      <dc:creator>rholm01</dc:creator>
      <dc:date>2021-02-26T20:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two perfmon counters from the same source to identify bottleneck</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Difference-between-two-perfmon-counters-from-the-same-source-to/m-p/541639#M153353</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/157728"&gt;@rholm01&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This may work:&lt;/P&gt;&lt;P&gt;| streamstats current=f last(Value) as previous_Value by host counter&lt;BR /&gt;| eval delta_Value=round(Value - previous_Value, 3)&lt;/P&gt;&lt;P&gt;If you want the absolute difference:&lt;/P&gt;&lt;P&gt;| eval delta_Value=round(abs(Value - previous_Value), 3)&lt;/P&gt;&lt;P&gt;If you find Splunk's rounded values disagreeing with exact calculations, you can tell Splunk to use exact math to the limits of the operating environment's floating point precision:&lt;/P&gt;&lt;P&gt;| eval delta_Value=exact(round(abs(Value - previous_Value), 3))&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2021 19:47:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Difference-between-two-perfmon-counters-from-the-same-source-to/m-p/541639#M153353</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2021-02-27T19:47:17Z</dc:date>
    </item>
  </channel>
</rss>

