Getting Data In

Is it possible to configure a forwarder to run a Powershell script to collect data at a certain time rather than setting an interval?

mtmoore
Explorer

In Inputs.conf you can set an interval that a powershell script runs to collect data... but can you somehow set the forwarder to run the PS script at a certain time of the day, every day, to collect data? i.e. run once, every day at 12pm..

Any ideas?

Thanks,
Marcus

1 Solution

halr9000
Motivator

I would use the PowerShell add-on with its cron format, which does allow time of day scheduling.

https://apps.splunk.com/app/1477/

View solution in original post

halr9000
Motivator

I would use the PowerShell add-on with its cron format, which does allow time of day scheduling.

https://apps.splunk.com/app/1477/

mtmoore
Explorer

Thankyou very much, will look into this.

0 Karma

linu1988
Champion

not that we can't set without the powershell addon. In interval we can specify a valid cron schedule for any input type.

interval= 0 12 * * *

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...