Getting Data In

How to stop powershell running when the UF is restarted?

cpaulraj
New Member

Has anyone figured out how to run powershell only at scheduled time? In addition to scheduled time, it is running everytime the forwarder is restarted.

Labels (2)
0 Karma

cpaulraj
New Member

Thank you for your reply, we hear from support that interval attribute can be used in [script] but not in [powershell]. 

 

 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Then you'll want to look at the schedule setting, which defaults to running the script at startup.

---
If this reply helps you, Karma would be appreciated.
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Check the scripted inputs for those with interval=-1.  That tells Splunk to run the script at startup.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

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