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!

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