API examples in Python
This documentation does not apply to the most recent version of Splunk. Click here for the latest version.
API examples in Python
The developer documentation offers several examples of search and auth against Splunk's API. These examples are offered in Python and Ruby. Please note that while these examples have been tested, they are not guaranteed to work in every environment.
- Searching in Python and Ruby examples are here.
- Getting an auth token in Python and Ruby examples are here.
This documentation applies to the following versions of Splunk: 4.1 , 4.1.1 , 4.1.2 , 4.1.3 , 4.1.4 , 4.1.5 , 4.1.6 , 4.1.7 , 4.1.8 View the Article History for its revisions.