<?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: Splunk search for failed count percentage out of total of each event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-for-failed-count-percentage-out-of-total-of-each/m-p/455478#M172291</link>
    <description>&lt;P&gt;Thanks adonio.&lt;BR /&gt;
I was missing in a point to use eventstats for the same.&lt;BR /&gt;
I have achieved the desired results.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2019 11:26:44 GMT</pubDate>
    <dc:creator>sahil237888</dc:creator>
    <dc:date>2019-03-25T11:26:44Z</dc:date>
    <item>
      <title>Splunk search for failed count percentage out of total of each event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-for-failed-count-percentage-out-of-total-of-each/m-p/455476#M172289</link>
      <description>&lt;P&gt;Hi, I need help in creating one query.&lt;BR /&gt;
There is one field "Operator" having multiple values like airphone,bphone,vsphone etc.&lt;/P&gt;

&lt;P&gt;The query should return the total count of each (airphone,bphone,vsphone etc.) per minute along with failed percentage of each.&lt;/P&gt;

&lt;P&gt;Also if that query could specify for which location there are maximum failure of each.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Mar 2019 17:26:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-search-for-failed-count-percentage-out-of-total-of-each/m-p/455476#M172289</guid>
      <dc:creator>sahil237888</dc:creator>
      <dc:date>2019-03-24T17:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search for failed count percentage out of total of each event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-for-failed-count-percentage-out-of-total-of-each/m-p/455477#M172290</link>
      <description>&lt;P&gt;hello there, &lt;BR /&gt;
with plenty of respect, it seems like you are almost asking us to do your homework for you.&lt;BR /&gt;
how would you tell if its failed or succeeded?&lt;BR /&gt;
what have you tried so far? share your search please as well as a sample data.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Mar 2019 22:01:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-search-for-failed-count-percentage-out-of-total-of-each/m-p/455477#M172290</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-03-24T22:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search for failed count percentage out of total of each event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-for-failed-count-percentage-out-of-total-of-each/m-p/455478#M172291</link>
      <description>&lt;P&gt;Thanks adonio.&lt;BR /&gt;
I was missing in a point to use eventstats for the same.&lt;BR /&gt;
I have achieved the desired results.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 11:26:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-search-for-failed-count-percentage-out-of-total-of-each/m-p/455478#M172291</guid>
      <dc:creator>sahil237888</dc:creator>
      <dc:date>2019-03-25T11:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search for failed count percentage out of total of each event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-for-failed-count-percentage-out-of-total-of-each/m-p/455479#M172292</link>
      <description>&lt;P&gt;Glad you're able to find a resolution on your own. Please post the search/solution that has worked for you as an answer and accept the same to close this question. This will help other splunkers with similar issues to know the working solution.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 13:37:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-search-for-failed-count-percentage-out-of-total-of-each/m-p/455479#M172292</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-03-25T13:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search for failed count percentage out of total of each event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-for-failed-count-percentage-out-of-total-of-each/m-p/455480#M172293</link>
      <description>&lt;P&gt;Working search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="logfilename" host="test" index="splunkdata"  earliest=-10m
| eventstats count(eval(Logon_message="for")) as Successful by Operator
| eventstats  count(eval(Logon_message="error")) as Failed by Operator 
| eventstats  count(eval(Logon_message="*")) as Total by Operator 
| eval perc_error = ((Failed)/(Total)*100) 
| stats values(Successful) as "Total Successful"  values(Failed) as "Total Failed" values(Total) as "Total Logins" values(perc_error) as Percentage by Operator
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Mar 2019 03:32:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-search-for-failed-count-percentage-out-of-total-of-each/m-p/455480#M172293</guid>
      <dc:creator>sahil237888</dc:creator>
      <dc:date>2019-03-26T03:32:52Z</dc:date>
    </item>
  </channel>
</rss>

