- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
rockzers
Path Finder
08-15-2022
08:55 PM
how to access splunk using python script
when i run this code i get an error
import splunklib.client as client service = client.connect(host='192.0.0.1', port=8000, username='username', password='password',verify=False) print(service)
shows an error
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yuanliu

SplunkTrust
08-15-2022
09:52 PM
splunklib.client is meant to connect to Splunk's REST API, which runs on port 8089 by default, not port 8000. Unless you specifically changed configuration, that service at port 8000 is the Web user interface with plain text HTTP. See example in Use Python SDK to export data.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yuanliu

SplunkTrust
08-15-2022
09:52 PM
splunklib.client is meant to connect to Splunk's REST API, which runs on port 8089 by default, not port 8000. Unless you specifically changed configuration, that service at port 8000 is the Web user interface with plain text HTTP. See example in Use Python SDK to export data.
