Splunk Search

need help or ideas on how to check status of server within the hour

owie6466
Explorer

still a newbie, need help or ideas on how to check the status of a server if it's changed or stayed the same within the hour. here's an example of the status of a server. alt text

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

You may be able to do that with the stats command.

... | stats latest(ClusStatus) as lastState, dc(ClusStatus) as statuses by host
| eval changed = if(statuses>1, "Yes", "No")
| table host lastState changed
---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

sphiwee
Contributor

how do you get the up/down status? what query are you using?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

You may be able to do that with the stats command.

... | stats latest(ClusStatus) as lastState, dc(ClusStatus) as statuses by host
| eval changed = if(statuses>1, "Yes", "No")
| table host lastState changed
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...