Getting Data In

Is $SPLUNK_HOME/etc/apps/myappname/local/bin/myscript a valid path for custom scripts?

tsheets13
Communicator

I have a python script that I have set in my apps inputs.conf being called with the specific path name.

Example:
[script://$SPLUNK_HOME/etc/apps/myappname/local/bin/myscript]

The script doesn't seem to be working. But when I originally had it in .../myappname/bin it worked fine.

Is the location invalid even though the path is fully specified in the inputs.conf?

If it is valid, what can I look for to see why it's not running?

Labels (2)

nickhills
Ultra Champion

Scripts should be in myappname/bin

Running them from inside ./local would not be supported.
Why do you want to run it from local?

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

esalmon
Explorer

I have a similar problem, except I've altered an existing Splunk App. I would rather not outright alter the runpowershell.cmd. Is there a way I can do it in a bin/local manner?

0 Karma
Get Updates on the Splunk Community!

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...