Skip to content

Commit 099b7fa

Browse files
release-1.6.18 changes
1 parent be4e2bf commit 099b7fa

File tree

4 files changed

+35
-3
lines changed

4 files changed

+35
-3
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Splunk Enterprise SDK for Python Changelog
22

3+
## Version 1.6.18
4+
5+
### Bug fixes
6+
* [#405](https://github.com/splunk/splunk-sdk-python/pull/405) Fix searchcommands_app example
7+
* [#406](https://github.com/splunk/splunk-sdk-python/pull/406) Fix mod inputs examples
8+
* [#407](https://github.com/splunk/splunk-sdk-python/pull/407) Modified Streaming and Generating Custom Search Command
9+
10+
### Minor changes
11+
* [#408](https://github.com/splunk/splunk-sdk-python/pull/408) Add search mode example
12+
* [#409](https://github.com/splunk/splunk-sdk-python/pull/409) Add Support for authorization tokens read from .splunkrc
13+
* [#413](https://github.com/splunk/splunk-sdk-python/pull/413) Default kvstore owner to nobody
14+
315
## Version 1.6.17
416

517
### Bug fixes

README.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# The Splunk Enterprise Software Development Kit for Python
55

6-
#### Version 1.6.17
6+
#### Version 1.6.18
77

88
The Splunk Enterprise Software Development Kit (SDK) for Python contains library code and examples designed to enable developers to build applications using the Splunk platform.
99

@@ -71,6 +71,26 @@ To run the examples and unit tests, you must put the root of the SDK on your PYT
7171

7272
The SDK command-line examples require a common set of arguments that specify the host, port, and login credentials for Splunk Enterprise. For a full list of command-line arguments, include `--help` as an argument to any of the examples.
7373

74+
### Following are the different ways to connect to Splunk Enterprise
75+
#### Using username/password
76+
```python
77+
import splunklib.client as client
78+
service = client.connect(host=<host_url>, username=<username>, password=<password>, autoLogin=True)
79+
```
80+
81+
#### Using bearer token
82+
```python
83+
import splunklib.client as client
84+
service = client.connect(host=<host_url>, splunkToken=<bearer_token>, autologin=True)
85+
```
86+
87+
#### Using session key
88+
```python
89+
import splunklib.client as client
90+
service = client.connect(host=<host_url>, token=<session_key>, autologin=True)
91+
```
92+
93+
###
7494
#### Create a .splunkrc convenience file
7595

7696
To connect to Splunk Enterprise, many of the SDK examples and unit tests take command-line arguments that specify values for the host, port, and login credentials for Splunk Enterprise. For convenience during development, you can store these arguments as key-value pairs in a text file named **.splunkrc**. Then, the SDK examples and unit tests use the values from the **.splunkrc** file when you don't specify them.

splunklib/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616

1717
from __future__ import absolute_import
1818
from splunklib.six.moves import map
19-
__version_info__ = (1, 6, 17)
19+
__version_info__ = (1, 6, 18)
2020
__version__ = ".".join(map(str, __version_info__))

splunklib/binding.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ def request(url, message, **kwargs):
13891389
head = {
13901390
"Content-Length": str(len(body)),
13911391
"Host": host,
1392-
"User-Agent": "splunk-sdk-python/1.6.17",
1392+
"User-Agent": "splunk-sdk-python/1.6.18",
13931393
"Accept": "*/*",
13941394
"Connection": "Close",
13951395
} # defaults

0 commit comments

Comments
 (0)