<?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: Calculate Ratio of Two Counter Streams in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Calculate-Ratio-of-Two-Counter-Streams/m-p/681950#M233018</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/121137"&gt;@KendallW&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply, but that does not work as I'm plotting this in the line chart.&amp;nbsp; &amp;nbsp;The data is coming to SignalFx from the StatsD agent.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-03-26 at 11.24.54 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29898i857E54086362E6E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-03-26 at 11.24.54 AM.png" alt="Screenshot 2024-03-26 at 11.24.54 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2024 05:57:28 GMT</pubDate>
    <dc:creator>sks</dc:creator>
    <dc:date>2024-03-26T05:57:28Z</dc:date>
    <item>
      <title>Calculate Ratio of Two Counter Streams</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-Ratio-of-Two-Counter-Streams/m-p/680233#M232512</link>
      <description>&lt;P&gt;I've two counter streams, I would like to display that as a percentage as&lt;BR /&gt;&lt;BR /&gt;B/(B+C)&amp;nbsp; in the chart but it always gives me an error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;B = data('prod.metrics.biz.l2_cache_miss', rollup='rate', extrapolation='zero').publish(label='B')&lt;BR /&gt;C = data('prod.metrics.biz.l2_cache_hit', rollup='rate', extrapolation='zero').publish(label='C')&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How can I create a new metrics out of these two to find either cache hit or miss percentage?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 04:47:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-Ratio-of-Two-Counter-Streams/m-p/680233#M232512</guid>
      <dc:creator>sks</dc:creator>
      <dc:date>2024-03-11T04:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Ratio of Two Counter Streams</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-Ratio-of-Two-Counter-Streams/m-p/681938#M233014</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/265778"&gt;@sks&lt;/a&gt;&amp;nbsp;if you want just the percentage of misses and the percentage of hits, you can do this with eval:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval Bperc=('B'/(B+C))*100
| eval Cperc=('C'/(B+C))*100&lt;/LI-CODE&gt;&lt;P&gt;If you want to show this in a chart (e.g. pie chart) you don't need to calculate the percentage as Splunk will do this for you, but you will need to get the values of B and C in the same column using transpose. Example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KendallW_0-1711418990776.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29895i9C10C7798042689F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KendallW_0-1711418990776.png" alt="KendallW_0-1711418990776.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 02:10:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-Ratio-of-Two-Counter-Streams/m-p/681938#M233014</guid>
      <dc:creator>KendallW</dc:creator>
      <dc:date>2024-03-26T02:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Ratio of Two Counter Streams</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-Ratio-of-Two-Counter-Streams/m-p/681950#M233018</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/121137"&gt;@KendallW&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply, but that does not work as I'm plotting this in the line chart.&amp;nbsp; &amp;nbsp;The data is coming to SignalFx from the StatsD agent.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-03-26 at 11.24.54 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29898i857E54086362E6E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-03-26 at 11.24.54 AM.png" alt="Screenshot 2024-03-26 at 11.24.54 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 05:57:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-Ratio-of-Two-Counter-Streams/m-p/681950#M233018</guid>
      <dc:creator>sks</dc:creator>
      <dc:date>2024-03-26T05:57:28Z</dc:date>
    </item>
  </channel>
</rss>

