Copyright (C) 2019 Chris Younger. I am a Splunk Professional Services consultant working for JDS Australia, in Brisbane Australia.
| 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
normal (default) - will output a single field
regions containing the severity name, the colour and the threshold value.
raw - will output an unmodified JSON structure for each time policy
columns - will output data as individual fields (
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
Splunk AppInspect evaluates Splunk apps against a set of Splunk-defined criteria to assess the validity and security of an app package and components.
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.