Splunk Search

Splunk Time difference search

Sirius27
New Member

I have two results of servers list as per last 30 days and last 12 hrs. I want to compare and find out which servers are not reporting in 12 hrs list. What can be the query for it.
Little new in Splunk.

Labels (1)
0 Karma

Sirius_27
Explorer

Hi,
That worked wonderfully, but I'm not getting what type of output is coming lastreport as  some 10 numbers of digit is coming in it.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

lastreport will be an epoch time i.e. the number of seconds since the beginning of 1970. Use strftime to format how it is displayed

| fieldformat lastreport=strftime(lastreport,"%Y/%m/%d %H:%M:%S")

 

ITWhisperer
SplunkTrust
SplunkTrust
| stats latest(_time) as lastreport by server
| where now()-lastreport > 12*60*60
Get Updates on the Splunk Community!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

New Release | Splunk Cloud Platform 10.1.2507

Hello Splunk Community!We are thrilled to announce the General Availability of Splunk Cloud Platform 10.1.2507 ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...