<?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: Percent problems in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Percent-problems/m-p/444223#M6010</link>
    <description>&lt;P&gt;You could do something like the below, as you are interested in Open/Closed only&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval percent= round ( if(actioned="true",count*100/total,0),1) | search percent &amp;gt; 0  
| gauge percent 0 40 60 100 
| fillnull value=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 19 Mar 2019 11:23:50 GMT</pubDate>
    <dc:creator>lakshman239</dc:creator>
    <dc:date>2019-03-19T11:23:50Z</dc:date>
    <item>
      <title>Percent problems</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Percent-problems/m-p/444222#M6009</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;Struggling to get the percentage to work properly...&lt;/P&gt;

&lt;P&gt;I have 3 fields; Open, Closed and New.&lt;/P&gt;

&lt;P&gt;I want to report on the percentage of events which have a status of either Closed or Open.&lt;/P&gt;

&lt;P&gt;Trying to play with the following but cant get it working;&lt;/P&gt;

&lt;P&gt;| eval actioned=if(in(status_group,"Open", "Closed"),"true","false") &lt;BR /&gt;
| stats count by actioned&lt;BR /&gt;
| eventstats sum(count) as total &lt;BR /&gt;
| eval percent= round ( count*100/total,1) &lt;BR /&gt;
| gauge percent 0 40 60 100 &lt;BR /&gt;
| fillnull value=0&lt;/P&gt;

&lt;P&gt;Any ideas? Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 10:26:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Percent-problems/m-p/444222#M6009</guid>
      <dc:creator>jacqu3sy</dc:creator>
      <dc:date>2019-03-19T10:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Percent problems</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Percent-problems/m-p/444223#M6010</link>
      <description>&lt;P&gt;You could do something like the below, as you are interested in Open/Closed only&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval percent= round ( if(actioned="true",count*100/total,0),1) | search percent &amp;gt; 0  
| gauge percent 0 40 60 100 
| fillnull value=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Mar 2019 11:23:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Percent-problems/m-p/444223#M6010</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-03-19T11:23:50Z</dc:date>
    </item>
  </channel>
</rss>

