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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...