Splunk Search

Splunk Query help to find time difference

NAVEEN_CTS
Path Finder

For last 30 days(which i will select in time filter) I would like to get the count of field X only if it is older than 7days from current time.

0 Karma

tiagofbmm
Influencer

Doesn't this work for you?

index=<yourindex> earliest=-30d latest=-7d | stats count(X)
0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...