Splunk ITSI

How to get the list of KPI's and Entities under Services using Rest Command for IT Service Intelligence App

harshal_chakran
Builder

Hi,

I have multiple Services created for IT Service Intelligence App which contains many KPI's. I can see that while creating/cloning Services, I have missed one or two KPI's under certain Service.

Is there any REST like command which I can use anytime to see the list of KPI's under Services and Entities too.

I can do this in Service Analyzer, just want to explore other simpler options as well

Thanks in advance.

0 Karma

esnyder_splunk
Splunk Employee
Splunk Employee

Here's a command that should work for KPIs if you have jq installed. I'd recommend to filter with jq rather than trying to process that JSON response yourself:

curl -k -u username:password https://example:8089/servicesNS/nobody/SA-ITOA/itoa_interface/service?filter='\{"title":"service_nam...' | jq '.[].kpis[].title'

(Replace "service_name" with the name of the service you want to grab the KPIs from)

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...