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!

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...

AppDynamics is now part of Splunk Ideas

Hello Splunkers, We have exciting news for you! AppDynamics has been added to the Splunk Ideas Portal. Which ...

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...