Splunk IT Service Intelligence

Extract list of ITSI Services and KPI's from REST

Esky73
Builder

I'm following the doco here :

http://docs.splunk.com/Documentation/ITSI/3.0.2/RESTAPI/ITSIRESTAPIreference#ITOA_Interface

i run a search :

| rest /servicesNS/nobody/SA-ITOA/itoa_interface/kpi_base_search

and i can get a json blob of data

i'd like to create a table from this of search names, base_search, etc

Is that possible ?

0 Karma

mibrown_splunk
Splunk Employee
Splunk Employee

You could try this to get the fields you're looking for:

| rest /servicesNS/nobody/SA-ITOA/itoa_interface/kpi_base_search 
| eval value=spath(value,"{}") 
| mvexpand value 
| eval base_search = spath(value, "base_search") 
| eval title = spath(value, "title") 
| eval metric_titles=spath(value, "metrics{}.title") 
| eval threshold_fields=spath(value, "metrics{}.threshold_field") 
| eval entity_calculation=spath(value, "metrics{}.entity_statop") 
| eval service_calculation=spath(value, "metrics{}.aggregate_statop") 
| eval units=spath(value, "metrics{}.unit") 
| fields title, base_search, metric_titles, threshold_fields, entity_calculation, service_calculation, units

Alternately you could rework the above search so each row contains all elements of the metric you're interested in.

Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...