Reporting

Scheduled alerts to get the latest event

fatjoe
Engager

How to I schedule an alert every five minutes to retrieve the latest index event for my source type?

When I run this query it gives me the latest event indexed.
sourcetype = MonitorLog | dedup Username | WHERE SecondsElapsed >= 300

LoggedTime,Username,AllocatedDirectorySize,UsedDirectorySize,PercentageUsage,LatestFileCreationTime,TimeElapsed,SecondsElapsed
5/17/2017 12:44:11 PM,amiro,300,314,105%,5/17/2017 12:01:30 PM,"0 days, 0 hours, 42 minutes, 41 seconds",2561.1242336

I set up a scheduled alert with the following cron job parameters:

Earliest: +0m@m
Latest: +5m@m
Cron expression: */5 * * * *

But its not working?
Any help is appreciated

Tags (2)
0 Karma
1 Solution

woodcock
Esteemed Legend

You are searching into the future; you need to search back to the past, like this:

Earliest: -5m@m
Latest: now

View solution in original post

woodcock
Esteemed Legend

You are searching into the future; you need to search back to the past, like this:

Earliest: -5m@m
Latest: now

fatjoe
Engager

@woodcock, Thanks for the help......It is working now

0 Karma
Get Updates on the Splunk Community!

Splunk Platform | Upgrading your Splunk Deployment to Python 3.9

Splunk initially announced the removal of Python 2 during the release of Splunk Enterprise 8.0.0, aiming to ...

From Product Design to User Insights: Boosting App Developer Identity on Splunkbase

co-authored by Yiyun Zhu & Dan Hosaka Engaging with the Community at .conf24 At .conf24, we revitalized the ...

Detect and Resolve Issues in a Kubernetes Environment

We’ve gone through common problems one can encounter in a Kubernetes environment, their impacts, and the ...