You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[#447](https://github.com/splunk/splunk-sdk-python/pull/447) Create job support for "output_mode:json" [[issue#285](https://github.com/splunk/splunk-sdk-python/issues/285)]
8
+
9
+
### Bug fixes
10
+
*[#449](https://github.com/splunk/splunk-sdk-python/pull/449) Set cookie [[issue#438](https://github.com/splunk/splunk-sdk-python/issues/438)]
11
+
*[#460](https://github.com/splunk/splunk-sdk-python/pull/460) Remove restart from client.Entity.disable
Copy file name to clipboardexpand all lines: README.md
+9-32
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,9 @@
3
3
4
4
# The Splunk Enterprise Software Development Kit for Python
5
5
6
-
#### Version 1.6.19
6
+
#### Version 1.6.20
7
7
8
-
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.
8
+
The Splunk Enterprise Software Development Kit (SDK) for Python contains library code designed to enable developers to build applications using the Splunk platform.
9
9
10
10
The Splunk platform is a search engine and analytic environment that uses a distributed map-reduce architecture to efficiently index, search, and process large time-varying data sets.
11
11
@@ -18,7 +18,7 @@ The Splunk developer platform enables developers to take advantage of the same t
18
18
19
19
## Get started with the Splunk Enterprise SDK for Python
20
20
21
-
The Splunk Enterprise SDK for Python contains library code and examples that show how to programmatically interact with the Splunk platform for a variety of scenarios including searching, saved searches, data inputs, and many more, along with building complete applications.
21
+
The Splunk Enterprise SDK for Python contains library code, and it's examples are located in the [splunk-app-examples](https://github.com/splunk/splunk-app-examples) repository, that show how to programmatically interact with the Splunk platform for a variety of scenarios including searching, saved searches, data inputs, and many more, along with building complete applications.
22
22
23
23
### Requirements
24
24
@@ -39,7 +39,7 @@ Here's what you need to get going with the Splunk Enterprise SDK for Python.
39
39
40
40
### Install the SDK
41
41
42
-
Use the following commands to install the Splunk Enterprise SDK for Python libraries. However, it's not necessary to install the libraries to run the examples and unit tests from the SDK.
42
+
Use the following commands to install the Splunk Enterprise SDK for Python libraries. However, it's not necessary to install the libraries to run the unit tests from the SDK.
43
43
44
44
Use `pip`:
45
45
@@ -68,8 +68,6 @@ To run the examples and unit tests, you must put the root of the SDK on your PYT
68
68
69
69
export PYTHONPATH=~/splunk-sdk-python
70
70
71
-
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.
72
-
73
71
### Following are the different ways to connect to Splunk Enterprise
74
72
#### Using username/password
75
73
```python
@@ -115,29 +113,9 @@ here is an example of .env file:
115
113
# Session key for authentication
116
114
#sessionKey=<Session-Key>
117
115
118
-
#### Run the examples
119
-
120
-
Examples are located in the **/splunk-sdk-python/examples** directory. To run the examples at the command line, use the Python interpreter and include any arguments that are required by the example. In the commands below, replace "examplename" with the name of the specific example in the directory that you want to run:
If you saved your login credentials in the **.env** file, you can omit those arguments:
135
-
136
-
python examplename.py
137
-
138
-
To get help for an example, use the `--help` argument with an example:
139
-
140
-
python examplename.py --help
118
+
Examples for the Splunk Enterprise SDK for Python are located in the [splunk-app-examples](https://github.com/splunk/splunk-app-examples) repository. For details, see the [Examples using the Splunk Enterprise SDK for Python](https://dev.splunk.com/enterprise/docs/devtools/python/sdk-python/examplespython) on the Splunk Developer Portal.
141
119
142
120
#### Run the unit tests
143
121
@@ -162,10 +140,9 @@ The test suite uses Python's standard library, the built-in `unittest` library,
|/examples | Examples demonstrating various SDK features |
166
143
|/splunklib | Source for the Splunk library modules |
167
144
|/tests | Source for unit tests |
168
-
|/utils | Source for utilities shared by the examples and unit tests |
145
+
|/utils | Source for utilities shared by the unit tests|
169
146
170
147
### Customization
171
148
* When working with custom search commands such as Custom Streaming Commands or Custom Generating Commands, We may need to add new fields to the records based on certain conditions.
@@ -216,7 +193,7 @@ class GeneratorTest(GeneratingCommand):
216
193
217
194
### Access metadata of modular inputs app
218
195
* In stream_events() method we can access modular input app metadata from InputDefinition object
219
-
* See [GitHub Commit](https://github.com/splunk/splunk-sdk-python/blob/develop/examples/github_commits/bin/github_commits.py) Modular input App example for reference.
196
+
* See [GitHub Commit](https://github.com/splunk/splunk-app-examples/blob/master/modularinputs/python/github_commits/bin/github_commits.py) Modular input App example for reference.
220
197
```python
221
198
defstream_events(self, inputs, ew):
222
199
# other code
@@ -262,7 +239,7 @@ To learn about our branching model, see [Branching Model](https://github.com/spl
262
239
|[REST API Reference Manual](https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTprolog)| Splunk REST API reference documentation |
263
240
|[Splunk>Docs](https://docs.splunk.com/Documentation)| General documentation for the Splunk platform |
264
241
|[GitHub Wiki](https://github.com/splunk/splunk-sdk-python/wiki/)| Documentation for this SDK's repository on GitHub |
265
-
242
+
|[Splunk Enterprise SDK for Python Examples](https://github.com/splunk/splunk-app-examples)| Examples for this SDK's repository |
0 commit comments