<?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: query for  percentage with count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/query-for-percentage-with-count/m-p/225080#M66366</link>
    <description>&lt;P&gt;Not sure if I understand what you need? What is the search that you're trying (before the appendpipe) and what is the fieldnames that you see?&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2016 01:08:30 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-01-14T01:08:30Z</dc:date>
    <item>
      <title>query for  percentage with count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/query-for-percentage-with-count/m-p/225075#M66361</link>
      <description>&lt;P&gt;I am trying to write a search, like Requests per second and its percentage based on total count. Please help me out in this. Thank you...&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 19:14:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/query-for-percentage-with-count/m-p/225075#M66361</guid>
      <dc:creator>asplunk123</dc:creator>
      <dc:date>2016-01-13T19:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: query for  percentage with count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/query-for-percentage-with-count/m-p/225076#M66362</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=someindex "priceRequest" |rex "some-app/(?&amp;lt;methodName&amp;gt;[a-zA-Z]*)" | rex "processingTime: (?&amp;lt;RTIME&amp;gt;[0-9]*)" | eval RTIME_SEC=(RTIME/1000) | eval group = case(RTIME_SEC &amp;lt; 1, "1 sec", RTIME_SEC &amp;lt; 2,"2 sec", RTIME_SEC &amp;lt; 3,"3 sec", RTIME_SEC &amp;lt; 4,"4 sec",RTIME_SEC &amp;lt; 5,"5 sec",RTIME_SEC &amp;lt; 6,"6 sec",RTIME_SEC&amp;gt;6,"Time Out")| stats count by group,methodName| eventstats sum(count) as total by methodName | eval Perc=round(count*100/total,2) | chart values(count) values(Perc) over group by methodName | appendpipe [| stats sum(*) as *  | eval group="Total" | table group *]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jan 2016 19:23:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/query-for-percentage-with-count/m-p/225076#M66362</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-01-13T19:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: query for  percentage with count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/query-for-percentage-with-count/m-p/225077#M66363</link>
      <description>&lt;P&gt;how to add the &lt;STRONG&gt;Total&lt;/STRONG&gt; field (row) in bottom of all adding all column values&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 20:59:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/query-for-percentage-with-count/m-p/225077#M66363</guid>
      <dc:creator>asplunk123</dc:creator>
      <dc:date>2016-01-13T20:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: query for  percentage with count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/query-for-percentage-with-count/m-p/225078#M66364</link>
      <description>&lt;P&gt;You can use addcoltotals command for that. (add to the end)&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 21:02:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/query-for-percentage-with-count/m-p/225078#M66364</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-01-13T21:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: query for  percentage with count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/query-for-percentage-with-count/m-p/225079#M66365</link>
      <description>&lt;P&gt;@somesoni2, Please help me out here for &lt;STRONG&gt;interchange the location of fields&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 23:32:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/query-for-percentage-with-count/m-p/225079#M66365</guid>
      <dc:creator>asplunk123</dc:creator>
      <dc:date>2016-01-13T23:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: query for  percentage with count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/query-for-percentage-with-count/m-p/225080#M66366</link>
      <description>&lt;P&gt;Not sure if I understand what you need? What is the search that you're trying (before the appendpipe) and what is the fieldnames that you see?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2016 01:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/query-for-percentage-with-count/m-p/225080#M66366</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-01-14T01:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: query for  percentage with count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/query-for-percentage-with-count/m-p/225081#M66367</link>
      <description>&lt;P&gt;@somesoni2, yes i mean , interchange the columns.&lt;/P&gt;

&lt;P&gt;here having 2 requests like priceRequest &amp;amp; priceResponse. actually having query for  1,2 columns are &lt;STRONG&gt;percentages&lt;/STRONG&gt; of both requests and 3,4 column are &lt;STRONG&gt;count&lt;/STRONG&gt; of both requests respectively. But i am expecting the query as like as  &lt;STRONG&gt;Count(priceRequest ) Percentage(priceRequest )  Count(priceResponse)  Percentage(priceResponse)&lt;/STRONG&gt; respectively...&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 23:23:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/query-for-percentage-with-count/m-p/225081#M66367</guid>
      <dc:creator>asplunk123</dc:creator>
      <dc:date>2016-01-20T23:23:14Z</dc:date>
    </item>
  </channel>
</rss>

