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!

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...