Splunk Dev

Is it possible to have Splunk run a python script or file on start up?

syx093
Communicator

What my program does is it gets a list of IP Addresses from 4 sources online, then uses those IP Addresses to find more info about them. Then it writes the information into a log file which is monitored by Splunk (have not gotten to this part yet). How do I make it so that Splunk is constantly running this program? To be more precise, how do I make it so that Splunk always runs this program when it starts up? The program is set to run in an infinite while loop and gathers information every hour because the the list of IP Address changes.
Quick question: Is there a better approach than writing the info into some log file?

0 Karma

reed_kelly
Contributor

Why not use a scripted input: http://docs.splunk.com/Documentation/Splunk/6.2.4/AdvancedDev/ScriptedInputsIntro
You can have it run at an interval and write to a file that is read by Splunk.

bmacias84
Champion

I would look into modular inputs.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...