<?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 display decline rate per specified fields over a period of time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-display-decline-rate-per-specified-fields-over-a-period/m-p/356660#M105526</link>
    <description>&lt;P&gt;ahh I see, thank you! Looks like that did it&lt;/P&gt;</description>
    <pubDate>Mon, 01 May 2017 21:37:53 GMT</pubDate>
    <dc:creator>demkic</dc:creator>
    <dc:date>2017-05-01T21:37:53Z</dc:date>
    <item>
      <title>how to display decline rate per specified fields over a period of time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-display-decline-rate-per-specified-fields-over-a-period/m-p/356657#M105523</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am struggling to write a query that displays the decline rate per payment_method over a period of 7 days (with span=1d). &lt;/P&gt;

&lt;P&gt;Ideally, I would like to display in one graph - a stacked bar chart of total volume of &lt;EM&gt;approved&lt;/EM&gt; and &lt;EM&gt;declined&lt;/EM&gt; transactions, and overlay that with the &lt;EM&gt;decline rate&lt;/EM&gt; per payment_method (where payment method is in the legend) displayed over time (span=1d for 1 week).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base query...
| bin _time span=1d 
| stats count(eval(success="false")) as declined, count(eval(success="true")) as approved, count as total by payment_method _time 
| eval percent_declined=round(declined / total * 100, 1) 
| table _time payment_method approved declined percent_declined 
| eval _time=strftime(_time,"%b %e, %Y") 
| sort -_time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help is greatly appreciated. &lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 01:30:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-display-decline-rate-per-specified-fields-over-a-period/m-p/356657#M105523</guid>
      <dc:creator>demkic</dc:creator>
      <dc:date>2017-05-01T01:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to display decline rate per specified fields over a period of time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-display-decline-rate-per-specified-fields-over-a-period/m-p/356658#M105524</link>
      <description>&lt;P&gt;what is it showing up as now? The syntax, to me, looks accurate enough. Is _time not showing up properly or are you having trouble formatting the chart, or is it that the fields aren't populated correctly?&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 12:06:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-display-decline-rate-per-specified-fields-over-a-period/m-p/356658#M105524</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-05-01T12:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to display decline rate per specified fields over a period of time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-display-decline-rate-per-specified-fields-over-a-period/m-p/356659#M105525</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base query...
 | bin _time span=1d 
 | stats count(eval(success="false")) as declined, count(eval(success="true")) as approved, count as total by payment_method _time 
 | eval percent_declined=round(declined / total * 100, 1) 
 | table _time payment_method approved declined percent_declined
 | timechart span=1d max(approved) max(declined) max(percent_declined) by payment_method
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 May 2017 15:37:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-display-decline-rate-per-specified-fields-over-a-period/m-p/356659#M105525</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-01T15:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to display decline rate per specified fields over a period of time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-display-decline-rate-per-specified-fields-over-a-period/m-p/356660#M105526</link>
      <description>&lt;P&gt;ahh I see, thank you! Looks like that did it&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 21:37:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-display-decline-rate-per-specified-fields-over-a-period/m-p/356660#M105526</guid>
      <dc:creator>demkic</dc:creator>
      <dc:date>2017-05-01T21:37:53Z</dc:date>
    </item>
  </channel>
</rss>

