Getting Data In

How to troubleshoot why a data input script inside an app is not running?



I have a script that I want to put inside the appName/bin dir inside a specific app.

Previously, the script was inside the splunkHome/bin and it works perfectly and in that app, I configured the inputs.conf and the default.meta accordingly to the script.

The problem is that when I moved the script from the splunkHome/bin dir to the appName/bin dir, I changed the inputs.conf and the default.meta again, but the script that previously gave me some results, now results don't appear.

I already saw this link:

But it didn't help.

Anyone please.... Thanks

0 Karma


Hi joao_amorim,

first, try to run the script manually in the new location:

 $SPLKUNK_HOME/bin/splunk cmd python $SPLUNK_HOME/etc/apps/YourAppName/bin/

assuming it's a python script.

If this shows no error but still does not work, add some logging functions to your script - see the docs for more details about this
Don't be confused that this link talks about modular inputs; the method of logging is the same for scripted or modular input.

Hope this helps ...

cheers, MuS

0 Karma


Ok i will try that.

Actually my script is a .ksh so i will try and then i will let you know.


0 Karma


@MuS do you know how to run a .ksh script in splunk?? Because I don't figure it out and already tried a lot of possibilities but no luck at all.

Best regards

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud | Unified Identity - Now Available for Existing Splunk ...

Raise your hand if you’ve already forgotten your username or password when logging into an account. (We can’t ...

Index This | How many sides does a circle have?

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

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...