Splunk Cloud Platform

How can one change the ITSI status of multiple episodes at once?

keesling
Engager

How can one change the ITSI status of multiple episodes at once?  I need to close numerous old episodes and don't have time to do it individually.

Labels (1)
0 Karma

alemarzu
Motivator

Hi @keesling
Have you tried by holding shift and left-click over them to multi-select? 

0 Karma

keesling
Engager

I had not, but while this works, it is limited to 100 episodes at a time, and I have over 100,000 to modify.

0 Karma

alemarzu
Motivator

Hmm, perhaps through the Rest API's but I never tried it before, not in bulk at least. But due to the amount of episodes you want to delete I believe the best approach would be a script to iterate on each individual _key episode record.

If you run this search you will have access to a list of episodes and their status, perhaps you could filter by them and making sure that all the episodes you want to keep are assigned and with other status than 1 (progress).

So first get the keys for the episodes for deletion and export to .*txt or w/e.

| inputlookup itsi_notable_group_user_lookup
  • 1 - New
  • 2 - In Progress
  • 3 - Pending
  • 4 - Resolved
  • 5 - Closed

Build a script to read the file and for each key execute, make sure this is the right path (I'm pretty tired)

curl -k -u admin:password https://localhost:8089/servicesNS/nobody/SA-ITOA/event_management_interface/notable_event_group/\?filter\='\{"_key":"004b2eed-4551-481f-9487-9cf96b58e59d"\}' -X DELETE

https://docs.splunk.com/Documentation/ITSI/4.6.0/RESTAPI/ITSIRESTAPIreference#event_management_inter...

 

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...