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!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...