Error when I run custom Python script from one server to another sever using cURL.
Error message in the CLI is this:
"Search Factory: Unknown search command"
Why this does not work from a Linux myServer2?
curl -k -u 'myUser:myPwd' https://myServer1:8089/services/search/jobs/export -d search=" | makeresults | myScript " -d output_mode=csv
But OK for search = " | makeresults | eval myVal=777 "
And OK for search = " | makeresults | sendemail to=\"myMail@myCompany.com\" subject=\"testfromcli\" "
And OK for myScript if I run it from Splunk search box from myServer1 itself.
Splunk Enterprise version 6.5.2
filename = myScript.py
Again. So poor support here...
OMG. Again it's about .../local.meta file. Hate it 🙂
I needed simply to add this stanza:
access = read : [ * ], write : [ admin, power ]
export = system
owner = myUsername