Getting Data In

Script being executed every minute - not scheduled

mookiie2005
Communicator

We have a script that splunk executes every minute on the minute...only problem is we do not have this scheduled as an alert or saved search. We cannot figure out why it is executed on the minute every minute. We can see the process in the aplunkd log however we do not see what/why it is being started. We have checked all alerts and no alerts are referencing this script. Anyone have a similar issue? How did you correct?

0 Karma

mookiie2005
Communicator

Well we tried that and it is not finding any references in the splunk files.

0 Karma

mux
Explorer

If you look in the python log (not splunkd) it should have details on the scripts being called, you can search for runshellscript

0 Karma

linu1988
Champion

Did you customize any scripts/command in splunk?

0 Karma

mux
Explorer

I have a script running from an alert and it shows in the python logs everytime a specific Webspere JVM is activated or deactived. Sorry this did not help.

0 Karma

mookiie2005
Communicator

We tried that, runshellscript is only in the python logs when a script is run from the cli not when it is called by an alert.

0 Karma

kristian_kolb
Ultra Champion

Ok then search for files containing the string that matches your script name. I'm sure there is some built-in GUI tool for searching through the files on disk in windows.

0 Karma

mux
Explorer

You could move the script out of the /bin/scripts folder. It will not prevent it from being called but would prevent the execution and may generate an error in the splunkd.log to help pinpoint what is calling it.

0 Karma

mookiie2005
Communicator

We have done this, we are looking for a way to stop it from being called.

0 Karma

mookiie2005
Communicator

The server is running on a windows environment. The script should not be executed in Real-time as we have never create any alerts against a real-time search.

0 Karma

kristian_kolb
Ultra Champion

Or do you have a real-time search that is still running that calls the script as an alert action?

0 Karma

kristian_kolb
Ultra Champion

interesting, can you do a grep -R your_script_name * in /opt/splunk/etc and see where it turns up?

0 Karma

mookiie2005
Communicator

It is a script that was created by me, I had it scheduled to an alert. The alert was removed yet for some reason keeps trying to execute the script every minute. I thought it might just be repeating because it did not finish running. I replaced the script with a file that just had "exit" in it, but it is still being run every minute.

0 Karma

kristian_kolb
Ultra Champion

what is the script called...? What apps do you have installed?

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 ...