<?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 ITSI create KPI with text value or state value in Splunk ITSI</title>
    <link>https://community.splunk.com/t5/Splunk-ITSI/Splunk-ITSI-create-KPI-with-text-value-or-state-value/m-p/382460#M595</link>
    <description>&lt;P&gt;yes you are correct I found the answer after I post question anyway thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2019 02:03:56 GMT</pubDate>
    <dc:creator>deodion</dc:creator>
    <dc:date>2019-04-02T02:03:56Z</dc:date>
    <item>
      <title>Splunk ITSI create KPI with text value or state value</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Splunk-ITSI-create-KPI-with-text-value-or-state-value/m-p/382458#M593</link>
      <description>&lt;P&gt;I use Splunk TA-Connectivity,&lt;BR /&gt;
I have a search that test internet connection by using below search, the event shows pinging the url is successful:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=connectivity sourcetype=webping url="*google*" 
| stats values(url) latest(description) AS status latest(action) AS action by url 
| fields url status action
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6792i9E727DC7EECFF4D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Is there any way to use this as Splunk ITSI KPI?&lt;BR /&gt;
What is the best way to incorporate text based value into KPI?&lt;/P&gt;

&lt;P&gt;May be I simply adjust the search like below?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=connectivity sourcetype=webping url="*detik*" OR url="*google*"
| stats values(url) latest(description) AS status latest(action) AS action by url 
| fields url status action
| eval kpi_status = if(status == online, 100, 0)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So I simply use kpi_status field as the Threshold Field,&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;any other better ways? Thanks!!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 04:55:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Splunk-ITSI-create-KPI-with-text-value-or-state-value/m-p/382458#M593</guid>
      <dc:creator>deodion</dc:creator>
      <dc:date>2019-03-28T04:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk ITSI create KPI with text value or state value</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Splunk-ITSI-create-KPI-with-text-value-or-state-value/m-p/382459#M594</link>
      <description>&lt;P&gt;As per your other question, try not to use &lt;CODE&gt;stats&lt;/CODE&gt; in your KPI queries, you don't need it.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=connectivity sourcetype=webping url="*detik*" OR url="*google*" | eval kpi_msg=if(status="online", 100, 0)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Will you split the KPI by the &lt;CODE&gt;url&lt;/CODE&gt; field? Have you considered how you want to combine that to indicate the aggregate health of the service?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 10:24:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Splunk-ITSI-create-KPI-with-text-value-or-state-value/m-p/382459#M594</guid>
      <dc:creator>sduff_splunk</dc:creator>
      <dc:date>2019-03-28T10:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk ITSI create KPI with text value or state value</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Splunk-ITSI-create-KPI-with-text-value-or-state-value/m-p/382460#M595</link>
      <description>&lt;P&gt;yes you are correct I found the answer after I post question anyway thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 02:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Splunk-ITSI-create-KPI-with-text-value-or-state-value/m-p/382460#M595</guid>
      <dc:creator>deodion</dc:creator>
      <dc:date>2019-04-02T02:03:56Z</dc:date>
    </item>
  </channel>
</rss>

