<?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: Calculate the SLA percentage from start event query and end event query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640077#M221802</link>
    <description>&lt;P&gt;Getting result like below&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exceeded.&amp;nbsp; &amp;nbsp;slapercentagefailure&lt;/P&gt;&lt;P&gt;66&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.5152&lt;/P&gt;&lt;P&gt;Same way can add the | stats count by date_hour&lt;/P&gt;&lt;P&gt;For SLA trendy by time of the day??&lt;/P&gt;</description>
    <pubDate>Sat, 15 Apr 2023 09:41:16 GMT</pubDate>
    <dc:creator>Sekhar</dc:creator>
    <dc:date>2023-04-15T09:41:16Z</dc:date>
    <item>
      <title>How to calculate the SLA percentage from start event query and end event query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640066#M221795</link>
      <description>&lt;P&gt;I have two events one is&amp;nbsp; calculate the SLA percentage from below querys&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Start event query&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Index=x source type= xx "saved msg" extacted fields s like manid,actionid,batch I'd&lt;/P&gt;
&lt;P&gt;End event query&lt;/P&gt;
&lt;P&gt;Index=y source type=y " recived msg" extacted fields like manid ,actionid&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 20:19:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640066#M221795</guid>
      <dc:creator>Sekhar</dc:creator>
      <dc:date>2023-04-17T20:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the SLA percentage from start event query and end event query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640068#M221797</link>
      <description>&lt;P&gt;What exactly do you mean by "SLA percentage"?&lt;/P&gt;&lt;P&gt;SLA usually means Service Level Agreement, so SLA percentage, is that the percentage of people that have signed up to the agreement, out of everyone in your organisation, or at least the key stakeholders in whatever service is being provided?&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 08:43:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640068#M221797</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-04-15T08:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the SLA percentage from start event query and end event query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640070#M221798</link>
      <description>&lt;P&gt;Calculate different between start and end events grouped by manid and count number of mandate execceding different above 30 sec&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 08:56:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640070#M221798</guid>
      <dc:creator>Sekhar</dc:creator>
      <dc:date>2023-04-15T08:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the SLA percentage from start event query and end event query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640073#M221800</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index=x source type=xx "saved msg") OR (index=y source type=y " recived msg")
| stats values(_time) as time values(actionid) as actionid values(batchid) as batchid by manid
| eval duration = max(time) - min(time)
| stats count count(eval(duration &amp;gt; 30)) as exceeded
| eval slapercentagefailure = 100*exceeded/count&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 15 Apr 2023 09:30:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640073#M221800</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-04-15T09:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the SLA percentage from start event query and end event query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640074#M221801</link>
      <description>&lt;P&gt;Getting result like below&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exceeded.&amp;nbsp; &amp;nbsp;slapercentagefailure&lt;/P&gt;&lt;P&gt;66&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.5152&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 09:37:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640074#M221801</guid>
      <dc:creator>Sekhar</dc:creator>
      <dc:date>2023-04-15T09:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the SLA percentage from start event query and end event query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640077#M221802</link>
      <description>&lt;P&gt;Getting result like below&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exceeded.&amp;nbsp; &amp;nbsp;slapercentagefailure&lt;/P&gt;&lt;P&gt;66&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.5152&lt;/P&gt;&lt;P&gt;Same way can add the | stats count by date_hour&lt;/P&gt;&lt;P&gt;For SLA trendy by time of the day??&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 09:41:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640077#M221802</guid>
      <dc:creator>Sekhar</dc:creator>
      <dc:date>2023-04-15T09:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the SLA percentage from start event query and end event query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640079#M221804</link>
      <description>&lt;P&gt;Which date_hour, when the start event happens or the end event?&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 09:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640079#M221804</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-04-15T09:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the SLA percentage from start event query and end event query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640080#M221805</link>
      <description>&lt;P&gt;Calculate different between start and end events grouped by manid and count number of mandate execceding different above 30 sec.&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;SLA trendy by time of the day.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can I add any field for day_hour above query?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 10:00:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640080#M221805</guid>
      <dc:creator>Sekhar</dc:creator>
      <dc:date>2023-04-15T10:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the SLA percentage from start event query and end event query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640081#M221806</link>
      <description>&lt;P&gt;Sure - which time do you want to use, the min(time) or the max(time)?&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 11:13:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640081#M221806</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-04-15T11:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the SLA percentage from start event query and end event query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640264#M221863</link>
      <description>&lt;P&gt;(index="X" AND sourcetype="xx" AND "saved msg")&lt;BR /&gt;OR (Index="y" AND sourcetype="yy" AND "recived msg")&lt;BR /&gt;| streamstats count(eval(match(_raw, "recived msg"))) AS sessionID BY manid actionid&lt;BR /&gt;| stats count(eval(match(_raw, "saved msg"))) AS savedCount range(_time) AS duration min(_time) AS _time BY sessionID&lt;BR /&gt;| stats count AS total count(eval((savedCount &amp;gt; 0 AND duration &amp;gt; 30) OR (savedCount==0 AND (now() - _time) &amp;gt; 30))) AS SLA_blown&lt;BR /&gt;| eval SLA_percentage = 100 * (total - SLA_blown) / total&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 17:47:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640264#M221863</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-17T17:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the SLA percentage from start event query and end event query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640305#M221871</link>
      <description>&lt;P&gt;Min(time)&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 02:25:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640305#M221871</guid>
      <dc:creator>Sekhar</dc:creator>
      <dc:date>2023-04-18T02:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the SLA percentage from start event query and end event query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640306#M221872</link>
      <description>&lt;P&gt;Min(time)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 02:25:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640306#M221872</guid>
      <dc:creator>Sekhar</dc:creator>
      <dc:date>2023-04-18T02:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the SLA percentage from start event query and end event query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640309#M221874</link>
      <description>&lt;LI-CODE lang="markup"&gt;(index=x source type=xx "saved msg") OR (index=y source type=y " recived msg")
| stats values(_time) as time values(actionid) as actionid values(batchid) as batchid min(_time) as _time by manid
| eval duration = max(time) - min(time)
| bin _time span=1h
| stats count count(eval(duration &amp;gt; 30)) as exceeded by _time
| eval slapercentagefailure = 100*exceeded/count&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Apr 2023 06:01:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-SLA-percentage-from-start-event-query-and/m-p/640309#M221874</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-04-18T06:01:51Z</dc:date>
    </item>
  </channel>
</rss>

