splunk-sdk-python
splunk-sdk-python copied to clipboard
Splunk Software Development Kit for Python
Am not able to import database libraries such as MySQLdb or SQLite in python scripts that is run using Splunk SDK or scripts run by Splunk during alerts.
This line can close the connection before the response has finished reading from it: https://github.com/splunk/splunk-sdk-python/blob/master/splunklib/binding.py#L1341 This happens when the connection has kept a reference to the response: https://hg.python.org/cpython/file/v2.7.5/Lib/httplib.py#l782 The conditions...
I am using splunk framework app running in search head. This app connects to splunk and gives a service object if requireClientCertit set to false in splunk server.conf, but fails...
File "test.py", line 7, in from splunklib import client as client File "/opt/splunk/etc/apps/MYAPP/bin/splunklib/client.py", line 70, in from binding import Context, HTTPError, AuthenticationError, namespace, UrlEncoded, _encode, _make_cookie_header File "/opt/splunk/etc/apps/MYAPP/bin/splunklib/binding.py", line 30,...
When attempting to use the API, I would receive the following error with python2.6 and 2.7 ``` Traceback (most recent call last): File "examples/search.py", line 115, in main(sys.argv[1:]) File "examples/search.py",...
this is my code > job = service.jobs.create(query_to_run, *_kwargs_search) > while True: > job.refresh() > stats = { > "isDone": job["isDone"], > "doneProgress": float(job["doneProgress"])_100, > "scanCount": int(job["scanCount"]) if "scanCount" in...
Some conf file properties store leading/trailing white spaces in them, and these white spaces are meaningful in an application, and should be returned to the client as it is, however,...
Line 1037 has a broken link. Not sure where it should be redirecting to.
The README states that Python 2.6 is supported. However, I am getting syntax errors, one of them being a dictionary comprehension which I know isn't supported in 2.6. I'm surprised...
Suppose I have 300 million events in my local Splunk instance. I write a chunked streaming search command read records from Splunk and write to Splunk then. Then I got...