os: windows 7-64bit / splunk 6.2.0 / universal forwarder 6.2.0
i know that universal forwarder doesn't include python bundle, but i want python script on the universal forwarder.
i tried python install and set
[script://python_path\python .\bin\test\test.py], but it failed.
Is there any way?
Yes! You can run Python scripts on the UF. But, you need to launch your script from within a shell script (or BAT script on Windows).
So your inputs.conf would be
And launchtest.sh would contain something like this
#!/bin/sh # launch the python script # you could include environment variables, more specific path names, etc as needed ./test.py
Make sure that launchtest.sh is executable. Thats's all you need!
could you please provide me steps to run the python script on universal forwarder ,since I am new to splunk I don't know how to run .bat file in windows .please provide all configuration details like input.conf and other configuration file.
I would be great help for me