<?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: SLA monitoring: percentage of slow transactions in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/SLA-monitoring-percentage-of-slow-transactions/m-p/63990#M15820</link>
    <description>&lt;P&gt;You rock Ayn &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2011 18:06:57 GMT</pubDate>
    <dc:creator>bowa</dc:creator>
    <dc:date>2011-03-22T18:06:57Z</dc:date>
    <item>
      <title>SLA monitoring: percentage of slow transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SLA-monitoring-percentage-of-slow-transactions/m-p/63986#M15816</link>
      <description>&lt;P&gt;I have selected and filtered a bunch of transactions that are part of KPI in our SLA.&lt;/P&gt;

&lt;P&gt;We define "slow" transactions as transactions with a duration over 3 seconds.&lt;/P&gt;

&lt;P&gt;Now that i have all transactions (and thus their durations) that have to be taken into account, how can i calculate how many % of those is considered "slow" ?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2011 22:07:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SLA-monitoring-percentage-of-slow-transactions/m-p/63986#M15816</guid>
      <dc:creator>bowa</dc:creator>
      <dc:date>2011-03-21T22:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: SLA monitoring: percentage of slow transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SLA-monitoring-percentage-of-slow-transactions/m-p/63987#M15817</link>
      <description>&lt;P&gt;You could use &lt;CODE&gt;eval&lt;/CODE&gt; and &lt;CODE&gt;if&lt;/CODE&gt; to divide the durations into "OK" and "Not OK" levels, for instance. Let's call the duration field &lt;CODE&gt;duration&lt;/CODE&gt; and that it holds the values in whole seconds.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourbasesearch&amp;gt; | eval sla_level=if(duration&amp;gt;3,"Not OK","OK") | top sla_level
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will give you a table with absolute count and percentage of each "Not OK" and "OK" durations. If you want to divide into more intervals, you could use &lt;CODE&gt;case&lt;/CODE&gt; instead of &lt;CODE&gt;if&lt;/CODE&gt; and define more levels.&lt;/P&gt;

&lt;P&gt;EDIT: So in response to your comment regarding getting these stats per hour, here's how to do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourbasesearch&amp;gt; | eval sla_level=if(duration&amp;gt;30,"Slow","OK") | timechart span=1h count by sla_level
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Filtering out all hours with less than 10 events requires some tricks but can be done like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourbasesearch&amp;gt; | eval sla_level=if(duration&amp;gt;30,"Slow","OK") | timechart span=1h count by sla_level | untable _time sla_level count | where count&amp;gt;=10 | xyseries _time sla_level count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Mar 2011 22:21:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SLA-monitoring-percentage-of-slow-transactions/m-p/63987#M15817</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-03-21T22:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: SLA monitoring: percentage of slow transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SLA-monitoring-percentage-of-slow-transactions/m-p/63988#M15818</link>
      <description>&lt;P&gt;wow &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; what a quick reply.&lt;BR /&gt;
that indeed is going in the right direction. I would need two things to add to it:&lt;BR /&gt;
* I would like to see those percentages on a per hour basis (span=1h)&lt;/P&gt;

&lt;P&gt;(and if possible ...)&lt;BR /&gt;
* I am not interested in hours where there are less than 10 transactions.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2011 22:38:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SLA-monitoring-percentage-of-slow-transactions/m-p/63988#M15818</guid>
      <dc:creator>bowa</dc:creator>
      <dc:date>2011-03-21T22:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: SLA monitoring: percentage of slow transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SLA-monitoring-percentage-of-slow-transactions/m-p/63989#M15819</link>
      <description>&lt;P&gt;That can certainly be done! Have a look at the response, I edited it to include searches that do what you want.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2011 05:55:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SLA-monitoring-percentage-of-slow-transactions/m-p/63989#M15819</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-03-22T05:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: SLA monitoring: percentage of slow transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SLA-monitoring-percentage-of-slow-transactions/m-p/63990#M15820</link>
      <description>&lt;P&gt;You rock Ayn &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2011 18:06:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SLA-monitoring-percentage-of-slow-transactions/m-p/63990#M15820</guid>
      <dc:creator>bowa</dc:creator>
      <dc:date>2011-03-22T18:06:57Z</dc:date>
    </item>
  </channel>
</rss>

