All Apps and Add-ons

How can I force a scheduled script to run when installing (or uninstalling) new software?

joshuapetitt
Path Finder

I'm using the Splunk for Windows addon on many computers. It has a scripted input for installed apps that runs once a day. Normally, this is what I want (only to collect the data once a day). However, if I am installing new software on all the computers, or uninstalling, I would like to force this script to run on all computers and send the data back to Splunk for a report.

Is this possible?

0 Karma

nickhills
Ultra Champion

If your using a deployment server, you can simply update the deployment-apps/TA/local/inputs.conf to change the interval on which the input runs.

Simply reload the deployment server, and your forwarders will update, and start sending data back more frequently.
When your done, switch it back, and reload the DS again, and your back to where you started.

If my comment helps, please give it a thumbs up!
0 Karma

joshuapetitt
Path Finder

this is an interesting solution, but seems like alot of work. This happens every few weeks, so it is often enough, I'd really like a "One Button Solution" ultimately. Maybe I need to go around the forwarder, and just have another program that does the one-shot sending?

0 Karma

nickhills
Ultra Champion

Its really not - about 20 seconds effort.
I do this all the time - testing remote data collection scripts

If my comment helps, please give it a thumbs up!
0 Karma

nickhills
Ultra Champion

If you want a point/click option:

create a duplicate app, where the interval is smaller.
Create a duplicate server class which assigns the new app.

from the DS UI, simply add your desired targets to the new serverclass (no need to remove them from the old)

Now you have two options - either remove the target machines when your done, or disable the server class.

Anyway the net result is the same .

If my comment helps, please give it a thumbs up!
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...