<?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: Howto get a list of ITSI services with source of KPI base search in Splunk ITSI</title>
    <link>https://community.splunk.com/t5/Splunk-ITSI/Howto-get-a-list-of-ITSI-services-with-source-of-KPI-base-search/m-p/433565#M1248</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;There is this lookup included in ITSI that includes all info for each KPI defined:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup service_kpi_sbs_lookup
| rename _key as service_id title as service_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want it separated:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup service_kpi_sbs_lookup
| rename _key as service_id title as service_name kpis.* as kpis_*
| eval kpis_info = mvzip(mvzip(mvzip(kpis__key, kpis_base_search, "==@@=="), kpis_search_type, "==@@=="), kpis_title, "==@@==")
| fields service_name service_id kpis_info
| mvexpand kpis_info
| eval kpis_info=split(kpis_info, "==@@==")
| eval kpis__key=mvindex(kpis_info, 0)
| eval kpis_base_search=mvindex(kpis_info, 1)
| eval kpis_search_type=mvindex(kpis_info, 2)
| eval kpis_title=mvindex(kpis_info, 3)
| fields - kpis_info
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could also try searching the splunk scheduler log or a version of the KPI Performance Panel included in the ITSI Healthcheck Dashboard:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=scheduler savedsearch_name="Indicator*"
            | stats count as run_count, count(eval(status!="success")) as failed_count, count(eval(suppressed!="0")) as suppressed_count,
            avg(run_time) as avg_runtime, max(run_time) as max_runtime, earliest(_time) as first, latest(_time) as last
            by savedsearch_name
            | eval KPI_search_type=if(savedsearch_name like "%Shared%", "base", "ad hoc")
            | eval runtime_headroom_pct=round((100-(max_runtime/((last-first)/(run_count-1))*100)),1)
            | eval avg_runtime=round(avg_runtime, 2)
            | eval max_runtime=round(max_runtime, 2)
            | table savedsearch_name KPI_search_type failed_count suppressed_count runtime_headroom_pct avg_runtime max_runtime run_count
            | sort +runtime_headroom_pct
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope it helps. Cheers!!!&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2019 20:59:40 GMT</pubDate>
    <dc:creator>jaime_ramirez</dc:creator>
    <dc:date>2019-07-17T20:59:40Z</dc:date>
    <item>
      <title>Howto get a list of ITSI services with source of KPI base search</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Howto-get-a-list-of-ITSI-services-with-source-of-KPI-base-search/m-p/433564#M1247</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;In my environment, I have a long list of ITSI services (created by someone else) which using default KPI base search. These default KPI base search is running every mins for 1 min data and it has causes some impact to the indexers. &lt;/P&gt;

&lt;P&gt;Without going through the UI for ITSI services and checking the search source for each KPI, is there any query I can use to generate the list of the ITSI services + KPI base search + base search source  name?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 05:27:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Howto-get-a-list-of-ITSI-services-with-source-of-KPI-base-search/m-p/433564#M1247</guid>
      <dc:creator>krusovice</dc:creator>
      <dc:date>2019-04-29T05:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Howto get a list of ITSI services with source of KPI base search</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Howto-get-a-list-of-ITSI-services-with-source-of-KPI-base-search/m-p/433565#M1248</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;There is this lookup included in ITSI that includes all info for each KPI defined:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup service_kpi_sbs_lookup
| rename _key as service_id title as service_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want it separated:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup service_kpi_sbs_lookup
| rename _key as service_id title as service_name kpis.* as kpis_*
| eval kpis_info = mvzip(mvzip(mvzip(kpis__key, kpis_base_search, "==@@=="), kpis_search_type, "==@@=="), kpis_title, "==@@==")
| fields service_name service_id kpis_info
| mvexpand kpis_info
| eval kpis_info=split(kpis_info, "==@@==")
| eval kpis__key=mvindex(kpis_info, 0)
| eval kpis_base_search=mvindex(kpis_info, 1)
| eval kpis_search_type=mvindex(kpis_info, 2)
| eval kpis_title=mvindex(kpis_info, 3)
| fields - kpis_info
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could also try searching the splunk scheduler log or a version of the KPI Performance Panel included in the ITSI Healthcheck Dashboard:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=scheduler savedsearch_name="Indicator*"
            | stats count as run_count, count(eval(status!="success")) as failed_count, count(eval(suppressed!="0")) as suppressed_count,
            avg(run_time) as avg_runtime, max(run_time) as max_runtime, earliest(_time) as first, latest(_time) as last
            by savedsearch_name
            | eval KPI_search_type=if(savedsearch_name like "%Shared%", "base", "ad hoc")
            | eval runtime_headroom_pct=round((100-(max_runtime/((last-first)/(run_count-1))*100)),1)
            | eval avg_runtime=round(avg_runtime, 2)
            | eval max_runtime=round(max_runtime, 2)
            | table savedsearch_name KPI_search_type failed_count suppressed_count runtime_headroom_pct avg_runtime max_runtime run_count
            | sort +runtime_headroom_pct
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope it helps. Cheers!!!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 20:59:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Howto-get-a-list-of-ITSI-services-with-source-of-KPI-base-search/m-p/433565#M1248</guid>
      <dc:creator>jaime_ramirez</dc:creator>
      <dc:date>2019-07-17T20:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Howto get a list of ITSI services with source of KPI base search</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Howto-get-a-list-of-ITSI-services-with-source-of-KPI-base-search/m-p/630987#M2639</link>
      <description>&lt;P&gt;I want to download the&amp;nbsp;service_kpi_sbs_lookup.csv file and import it in another test splunk whit Lookup Editor. Does anyone know where is&amp;nbsp;service_kpi_sbs_lookup.csv under linux ? Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 15:13:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Howto-get-a-list-of-ITSI-services-with-source-of-KPI-base-search/m-p/630987#M2639</guid>
      <dc:creator>a1bg503461</dc:creator>
      <dc:date>2023-02-15T15:13:19Z</dc:date>
    </item>
  </channel>
</rss>

