Splunk Dev

Getting Execprocessor error with bash script

matthewhasty
Explorer

I am getting this error when running my script as a scripted input:

05-07-2018 10:28:00.177 -0500 ERROR ExecProcessor - message from "/opt/splunk/bin/scripts/pingdomtest" \r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r100 723 0 723 0 0 842 0 --:--:-- --:--:-- --:--:-- 842\r100 8666 0 8666 0 0 8345 0 --:--:-- 0:00:01 --:--:-- 8348

My inputs .conf looks like this:
[script://$SPLUNK_HOME/bin/scripts/pingdomtest]
disabled = false
index = test
interval = 120
source = ./pingdomtest
sourcetype = json_no_timestamp

I have run the script by itself and it is working and getting the data down from pingdom.

Thanks!

Tags (1)
0 Karma
1 Solution

jconger
Splunk Employee
Splunk Employee

Try running the script from the command line as Splunk like so:

/opt/splunk/bin/splunk cmd /opt/splunk/bin/scripts/pingdomtest

View solution in original post

0 Karma

jconger
Splunk Employee
Splunk Employee

Try running the script from the command line as Splunk like so:

/opt/splunk/bin/splunk cmd /opt/splunk/bin/scripts/pingdomtest
0 Karma

matthewhasty
Explorer

Had to fix the script, it is working now, thanks!

0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...