Splunk Search

Getting the timestamp when the status has changed

honey527
New Member

We are getting the data from Database for every 5mins.

Even the field value doesn't change the same value will be indexed with different timestamp for every 5 mins.

There is a status field which indicates whether the device is on or off.

we want to get the time of the status change for the device with the timestamp.

please suggest the query for this

Labels (1)
0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @honey527,

Please try below;

| dedup _time status
| table _time status

 

If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...