Getting Data In

scripted input not following the cron schedule

meenu_2017
Engager

I have a scripted input that runs on the schedule 0 9 * * * (once a day at 9 am). This is a powershell scripted input and observing that this gets triggered multiple times if the server gets rebooted and hence the forwarder restarts. Any idea why would this happen? Universal Forwarder version - 6.6.6

0 Karma

somesoni2
Revered Legend

Ideally this should not happen, if you've specified correct Cron schedule. Does it get executed immediately after the forwarder restart? Also, does it get executed once every time forwarder restarts or multiple times?

interval = [<number>|<cron schedule>]
* How often to run the specified command (in seconds), or a valid cron
  schedule.
* NOTE: when you specify a cron schedule, the input does not run the
  script on start-up.
0 Karma

meenu_2017
Engager

Is there any difference if we specify the cron with schedule = or interval=?

0 Karma

meenu_2017
Engager

Its getting executed once immediately after forwarder restart! We have a big set of machines working as expected with the same config and a few which is showing duplicate events from multiple runs.

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...