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!

.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 ...