I am working on a python script to upload logs to an index on the local Splunk server. I use splunk-sdk for python for this.
Connection and some splunk-sdk example runs fine but I am having trouble when uploading logs.
When i run the upload.py script with the file to be uploaded command runs with no error but I don't see the logs on any index. So far I tried:
1. using the example script on github python-sdk page
2. implementing upload() method with indexes class described here: https://docs.splunk.com/DocumentationStatic/PythonSDK/1.6.5/client.html#splunklib.client.Index.upload
3. Implementing oneshot() method with inputs class
None of the above worked.
What am i doing wrong? Is there any way to have some feedback on why the file wasn't uploaded?
http://dev.splunk.com/view/python-sdk/SP-CAAAEE6#createinput http://dev.splunk.com/view/python-sdk/SP-CAAAEE6 http://dev.splunk.com/view/python-sdk/SP-CAAAEFK#upload
... View more