Perform the steps in this recipe to create a custom search command to format product names:
- Open a console terminal on your Splunk server.
- Change to the directory where you downloaded the Splunk Python SDK.
- Expand the ZIP file using an appropriate tool located on your Splunk server.
- Copy the splunk-sdk-python-X.X.X/splunklib (replace the Xes with your correct SDK version) directory into $SPLUNK_HOME/etc/apps/operational_intelligence/bin.
- Create and add the following code to commands.conf located in the $SPLUNK_HOME/etc/apps/operational_intelligence/local directory:
[fixname] filename = fixname.py supports_getinfo = true supports_rawargs = true outputheader = true requires_srinfo = true
- In $SPLUNK_HOME/etc/apps/operational_intelligence/bin ...