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!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Building Momentum: Splunk Developer Program at .conf25

At Splunk, developers are at the heart of innovation. That’s why this year at .conf25, we officially launched ...