February 2017
Beginner to intermediate
962 pages
21h 26m
English
We understood the use of an %SDK and also saw the installation part of the %Splunk SDK for Python. Now, we will see how the SDK can be used to integrate the power of Splunk's analytics and visualization.
The following import statement %will make the Splunk API available for use in Python:
import splunklib.client as client import splunklib.results as results
The preceding two import statements make the API exposed using the Splunk SDK that is to be used in the Python code for integration.
The following% image in the code snippet connects and also% authenticates the Splunk server. The login details can be passed as a parameter when running the ...
Read now
Unlock full access