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!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...