<?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: percentage in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461513#M130165</link>
    <description>&lt;P&gt;i need to add the application_name value as all abc as one value and all xyz as one value &lt;/P&gt;

&lt;P&gt;application_name errors count percent &lt;BR /&gt;
abc 0, 24, 92.307692&lt;BR /&gt;
abc 1, 2, 7.692308&lt;BR /&gt;
xyz 0, 64, 81.012658&lt;BR /&gt;
xyz 2, 7, 8.860756 &lt;BR /&gt;
this is what   i am geeting &lt;BR /&gt;
i want to add (abc + abc)application_name and i want to display the percentage, i hope you understand the request&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 01:53:45 GMT</pubDate>
    <dc:creator>srinivasmanikan</dc:creator>
    <dc:date>2020-09-30T01:53:45Z</dc:date>
    <item>
      <title>percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461507#M130159</link>
      <description>&lt;P&gt;i have a field called application_name it is indexing to Splunk for every 5 min. so if i run top command for getting the percentage it is giving the value, but the application_name are coming as duplicate with different values so i need to add them and give a percentage based on the time range&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:53:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461507#M130159</guid>
      <dc:creator>srinivasmanikan</dc:creator>
      <dc:date>2020-09-30T01:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461508#M130160</link>
      <description>&lt;P&gt;hmm the top command gives duplicates? Are you sure there are no leading / trailing white spaces in the application_name field.&lt;BR /&gt;
Can you post your query for us to assist further?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 10:50:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461508#M130160</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-26T10:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461509#M130161</link>
      <description>&lt;P&gt;Can you give more details on how is it duplicated but with different values? Also, how do you decide which time interval is considered for the calculation? Its the percentage calculated then regarding just the data in this interval or the entire select time of the search? &lt;BR /&gt;
If you can show some example data and the expected output it will be easier to get an answer from anyone here.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 10:51:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461509#M130161</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2019-08-26T10:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461510#M130162</link>
      <description>&lt;P&gt;index=**** |top "error" by application_name&lt;/P&gt;

&lt;P&gt;application_name      errors     count      percent&lt;BR /&gt;&lt;BR /&gt;
abc                                 0               24           92.307692&lt;BR /&gt;
abc                                  1               2             7.692308&lt;BR /&gt;
xyz                                   0              64            81.012658&lt;BR /&gt;
xyz                                   2               7               8.860756&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 10:58:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461510#M130162</guid>
      <dc:creator>srinivasmanikan</dc:creator>
      <dc:date>2019-08-26T10:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461511#M130163</link>
      <description>&lt;P&gt;yes suksien there are no white spaces.&lt;/P&gt;

&lt;P&gt;index= |top "error" by application_name&lt;/P&gt;

&lt;P&gt;application_name errors count percent &lt;BR /&gt;
abc  0, 24, 92.307692&lt;BR /&gt;
abc 1, 2, 7.692308&lt;BR /&gt;
xyz 0, 64, 81.012658&lt;BR /&gt;
xyz 2, 7, 8.860756&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 11:00:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461511#M130163</guid>
      <dc:creator>srinivasmanikan</dc:creator>
      <dc:date>2019-08-26T11:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461512#M130164</link>
      <description>&lt;P&gt;There is nothing wrong with the output of the command there. You are getting the percentage of each error by application_name. Meaning for application_name "abc" errors "0" appear 24 times making it 92,3% of the Total (again) by application_name and errors "1" appear 2 times making it 7,6% of the Total by application_name. you say its "duplicated" but its just because you are using "errors" by "application_name".&lt;BR /&gt;
Whats the intended output you are looking for? Also, can you post some example?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:53:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461512#M130164</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2020-09-30T01:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461513#M130165</link>
      <description>&lt;P&gt;i need to add the application_name value as all abc as one value and all xyz as one value &lt;/P&gt;

&lt;P&gt;application_name errors count percent &lt;BR /&gt;
abc 0, 24, 92.307692&lt;BR /&gt;
abc 1, 2, 7.692308&lt;BR /&gt;
xyz 0, 64, 81.012658&lt;BR /&gt;
xyz 2, 7, 8.860756 &lt;BR /&gt;
this is what   i am geeting &lt;BR /&gt;
i want to add (abc + abc)application_name and i want to display the percentage, i hope you understand the request&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:53:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461513#M130165</guid>
      <dc:creator>srinivasmanikan</dc:creator>
      <dc:date>2020-09-30T01:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461514#M130166</link>
      <description>&lt;P&gt;Try this:&lt;BR /&gt;
&lt;CODE&gt;| top application_name&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Otherwise, using your command &lt;CODE&gt;|top "error" by application_name&lt;/CODE&gt;, if you just add/sum the different values for each application (abc+abc) and (xyz+xyz) you'll always get 100% percentage&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 11:59:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461514#M130166</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2019-08-26T11:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461515#M130167</link>
      <description>&lt;P&gt;ya i agree with you thats what i am asking is there any chance to get the correct percentage &lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 13:26:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461515#M130167</guid>
      <dc:creator>srinivasmanikan</dc:creator>
      <dc:date>2019-08-26T13:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461516#M130168</link>
      <description>&lt;P&gt;in this way i am not getting the error count &lt;/P&gt;

&lt;P&gt;it is showing as &lt;BR /&gt;
application_name      count     percent&lt;BR /&gt;
abc,196,0.498575&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 13:30:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461516#M130168</guid>
      <dc:creator>srinivasmanikan</dc:creator>
      <dc:date>2019-08-26T13:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461517#M130169</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;    | top "error" by application_name
    | sort error
    | eventstats sum(count) as sum_count by error
    | eval perc=round((count/sum_count)*100,2)
|fields application_name,error,perc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi @srinivasmanikanta try this, we are a bit unable to understand your exact need, but this should set you on your way, tinker with the application_name and error for your exact requirements&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 13:36:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461517#M130169</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-26T13:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: percentage</title>
      <link>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461518#M130170</link>
      <description>&lt;P&gt;hi @srinivasmanikanta &lt;BR /&gt;
Please accept the answer if it significantly helped resolve your issue or let us know if there are any more issues&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 18:54:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/percentage/m-p/461518#M130170</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-28T18:54:47Z</dc:date>
    </item>
  </channel>
</rss>

