Dashboards & Visualizations

charting an event with a binary state?

dang
Path Finder

I'm looking to create a view that shows whether a service is up or down. Does anyone have an example of how to chart a sort of green light/red light display on a view?

Tags (3)
0 Karma
1 Solution

hazekamp
Builder

dang,

Assuming you have a field called 'state' with binary values 0/1 you could do something like:

<my search> | head 1 | rangemap field=state low=0 default=severe

In the above search "head 1" get's us the last state. You could also do this with 'stats last(state)'. Rangemap is a command that maps field values into ranges. In this case we map 0 to low (green) and 1 to severe (red)

See also:

http://answers.splunk.com/questions/6777/add-image-to-search/13265#13265

http://answers.splunk.com/questions/7732/rangemap-command

http://www.splunk.com/base/Documentation/4.2/Developer/AddASingleButton

View solution in original post

0 Karma

hazekamp
Builder

dang,

Assuming you have a field called 'state' with binary values 0/1 you could do something like:

<my search> | head 1 | rangemap field=state low=0 default=severe

In the above search "head 1" get's us the last state. You could also do this with 'stats last(state)'. Rangemap is a command that maps field values into ranges. In this case we map 0 to low (green) and 1 to severe (red)

See also:

http://answers.splunk.com/questions/6777/add-image-to-search/13265#13265

http://answers.splunk.com/questions/7732/rangemap-command

http://www.splunk.com/base/Documentation/4.2/Developer/AddASingleButton

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...