We already know that the Splunk SDK is available for most of the popular programming languages, but we will concentrate on the Splunk SDK for Python on a Windows OS in detail in this chapter.
The Splunk SDK is available for download from the Splunk website (http://dev.splunk.com/sdks) and the Splunk SDK for Python can be directly downloaded from http://dev.splunk.com/goto/sdk-python.
The SDK is for Python, and hence, Python should be already installed to use the Splunk SDK for Python. According to Splunk documentation, the Splunk SDK supports Python 2.6 or higher but does not support Python 3.
The Python SDK can be installed in Windows using Python's Setuptools or by downloading the Python SDK from the preceding link manually. The Python SDK can be installed from the Command Prompt as follows:
Download Setuptools from the Python website (https://pypi.python.org/pypi/setuptools) and in Command Prompt, navigate to the
Setuptools
folder and type Pythoneasy_install.py...