<?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: How to edit my stats count search to chart a percentage trend over time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-stats-count-search-to-chart-a-percentage-trend/m-p/213446#M62618</link>
    <description>&lt;P&gt;Thanks vasildavid!!!  That did the trick&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2016 19:34:41 GMT</pubDate>
    <dc:creator>sidekix24</dc:creator>
    <dc:date>2016-02-22T19:34:41Z</dc:date>
    <item>
      <title>How to edit my stats count search to chart a percentage trend over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-stats-count-search-to-chart-a-percentage-trend/m-p/213444#M62616</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have the search below that displays an availability percentage for me, but now I'm looking to time chart that percentage to show a trend of the availability percentage over time.  I'm thinking that the issue I'm having is that once you use &lt;CODE&gt;count&lt;/CODE&gt;, that does a count over the selected time so it wraps up everything into that one percentage. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count(eval(Login_Status)) AS Total count(eval(Login_Status=302 AND Recruiter_Status=200 AND QuickSearch_Status=200)) AS Success | eval Division=Success/Total | eval Percent=round ((Division)*100,2) | eval Final=Percent + "%" | table Percent
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Anyone have any suggestions or ideas to try?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 19:38:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-stats-count-search-to-chart-a-percentage-trend/m-p/213444#M62616</guid>
      <dc:creator>sidekix24</dc:creator>
      <dc:date>2016-02-19T19:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my stats count search to chart a percentage trend over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-stats-count-search-to-chart-a-percentage-trend/m-p/213445#M62617</link>
      <description>&lt;P&gt;Use buckets and break your stats down by _time.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| bucket _time span=5m 
  | stats count(eval(Login_Status)) AS Total, count(eval(Login_Status=302 AND Recruiter_Status=200 AND QuickSearch_Status=200)) AS Success by _time 
  | eval Division=Success/Total 
  | eval Percent=round ((Division)*100,2) 
  | eval Final=Percent + "%" 
  | table _time, Percent
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Feb 2016 21:33:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-stats-count-search-to-chart-a-percentage-trend/m-p/213445#M62617</guid>
      <dc:creator>vasildavid</dc:creator>
      <dc:date>2016-02-19T21:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my stats count search to chart a percentage trend over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-stats-count-search-to-chart-a-percentage-trend/m-p/213446#M62618</link>
      <description>&lt;P&gt;Thanks vasildavid!!!  That did the trick&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 19:34:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-stats-count-search-to-chart-a-percentage-trend/m-p/213446#M62618</guid>
      <dc:creator>sidekix24</dc:creator>
      <dc:date>2016-02-22T19:34:41Z</dc:date>
    </item>
  </channel>
</rss>

