icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading Get ITSI Thresholds custom command
SHA256 checksum (get-itsi-thresholds-custom-command_101.tgz) 60b6167aca1081e31136ca79866eb8abeaecaddfd1c3f8a7ec7c2bf504d7fdce
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

Get ITSI Thresholds custom command

Splunk AppInspect Passed
Admins: Please read about Splunk Enterprise 8.0 and the Python 2.7 end-of-life changes and impact on apps and upgradeshere.
A custom command that will retrieve the values of the time-based ITSI thresholds that are set for a KPI. Compatible with static ITSI thresholds or adaptive thresholds.

Works well with "Region Chart Viz" ( https://splunkbase.splunk.com/app/4911 )

Copyright (C) 2019 Chris Younger. I am a Splunk Professional Services consultant working for JDS Australia, in Brisbane Australia.

Source code | Questions, Bugs or Suggestions | My Splunk apps


| getitsithresholds service=SERVICEID kpi=KPI mode=(normal|raw|columns)

This can be used as a generating command or a steaming command. If used as a streaming command, it must have a _time field/column. It will use this _time column to match the thresholds with the correct data rows. Data can be supplied in any granularity however if the time block extends through multiple time policies, then only the first time policy will be output. For this reason, its best to use data with hourly granularity or smaller.

Simple example to retrieve thresholds (generating command):

| getitsithresholds service=c2d8f443-fd65-4872-b3b8-1ac7757b57f6 kpi=a672f70631ce28a0be31e1f2

Example showing how to enrich data by adding thresholds (streaming command):

index="itsi_summary" itsi_service_id=c2d8f443-fd65-4872-b3b8-1ac7757b57f6 kpiid=a672f70631ce28a0be31e1f2 
| timechart span=1h avg(alert_value) as alert_value
| getitsithresholds service=c2d8f443-fd65-4872-b3b8-1ac7757b57f6 kpi=a672f70631ce28a0be31e1f2


mode=normal (default) - will output a single field regions containing the severity name, the colour and the threshold value.
mode=raw - will output an unmodified JSON structure for each time policy
mode=columns - will output data as individual fields (hour, policy, min, max, severityX..., colorX..., thresholdX...). ITSI can be configured with different amounts of severities for each time policy, this is why the columns are output like this.

Output from this command (using mode=normal) can be charted using the "Region Chart Visualization"


Thank you to Luke Murphy for providing the Search Command Example template: https://github.com/LukeMurphey/splunk-search-command-example

Release Notes

Version 1.0.1
March 11, 2020


Subscribe Share

AppInspect Tooling

Splunk AppInspect evaluates Splunk apps against a set of Splunk-defined criteria to assess the validity and security of an app package and components.

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps and add-ons from Splunk, our partners and our community. Find an app or add-on for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
© 2005-2020 Splunk Inc. All rights reserved.
Splunk®, Splunk>®, Listen to Your Data®, The Engine for Machine Data®, Hunk®, Splunk Cloud™, Splunk Light™, SPL™ and Splunk MINT™ are trademarks and registered trademarks of Splunk Inc. in the United States and other countries. All other brand names, product names, or trademarks belong to their respective owners.