Splunk Search

how can i get from time and to time of my machine value is zero?

ajayabburi508
Path Finder

I have one machine it displays values zero and one . if its value is zero for one hour i want that from time and to time of that machine.

Tags (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi ajayabburi508
let me better understand:
do you want a search that when for an hour you have only value=0 and not value=1, it displays from_time and to_time?

if this is your need run an alert like this every five minutes:

index=your_index sourcetype=your_sourcetype 
| transaction maxspan=1h
| search value!=1
| stats earliest(_time) AS earliest latest(_time) AS latest

Bye.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...