Dashboards & Visualizations

Make a graph displaying enabled/disabled status of a process

tbrown
Path Finder

I have logs coming in that are the following: 

 

 

State change from '0' to '1' is complete

 

 

or

 

 

State change from '1' to '0' is complete

 

 

 on multiple nodes. 

Basically, I want a graph/visualization that displays the most recent status of the hosts. I've used | rex field to extract the value either '0/1' on each log after "to" but I'm wondering how I could do it so that the graph shows the most recent state of each node, maybe a bar graph or something where a green bar=1 and a red bar=0, separated by hosts.,

Any advice is appreciated, thanks!

Labels (4)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

See if this helps.

index=foo
| rex "from \d to (?<state>\d)"
| stats latest(state) by host
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

See if this helps.

index=foo
| rex "from \d to (?<state>\d)"
| stats latest(state) by host
---
If this reply helps you, Karma would be appreciated.
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 ...