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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...