Hi Guys,
I'm pulling m hair out trying to get my CURL script to run.
I've set up a scripted input in my app, it calls a bash script which has the line
curl -O -s -H "X-Requested-With: Curl Sample" -b "path=/api; secure" -u "TRUCNATED" "https://TRUNCATED&id=$id"
The script works fine when I call it normally (It dumps XML), however when I try it with $SPLUNK_HOME/bin/splunk cmd script.sh, nothing happens.
I added an echo statement to the script and that prints normally when I execute it through cmd, however it still wont print the xml. I've tried -o -O > 1>& 2>& to files, variables, etc. It seems that when Splunk calls the script which calls CURL, output fails to work!
Any ideas would be great!
... View more