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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...