Splunk Search

cron search in dashboard panel

Fleshwriter
Explorer

Hello,

I am trying to create a search query, which i will later transfer to dashboard panel. This query is monitoring if files exist in folder (folder should be empty). Problem is that during weekend files from that folder are not picked up. So if i transfer query to a dashboard it would show false alert (because it is normal that files are waiting in folder during weekend). Question is:
Can i set up a time for dashboard query to ignore saturday and sunday, but work on other days, something like cron?

Best,
- F.

0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi Fleshwriter,
you have to insert in your search the exclusion of Saturday and Monday, something like this:

your_search NOT (date_wday="saturday" OR date_wday="sunaday")
| ...

Bye.
Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi Fleshwriter,
you have to insert in your search the exclusion of Saturday and Monday, something like this:

your_search NOT (date_wday="saturday" OR date_wday="sunaday")
| ...

Bye.
Giuseppe

0 Karma

Fleshwriter
Explorer

Yeah, thanks. I'm surprised it was easier than I expected 🙂

0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...