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!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

 Ready to master Kubernetes and cloud monitoring like the pros? Join Splunk’s Growth Engineering team for an ...

Update Your SOAR Apps for Python 3.13: What Community Developers Need to Know

To Community SOAR App Developers - we're reaching out with an important update regarding Python 3.9's ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...