-
Notifications
You must be signed in to change notification settings - Fork 25
Splunk SDK IntelliSense
When developing integrations using Splunk Enterprise SDKs like the Python or JavaScript SDK, Visual Studio Code can automatically provide IntelliSense.
A comprehensive guide to getting started with the Splunk Enterprise Python SDK is available at dev.splunk.com including installation instructions, documentation, and examples.
The Splunk Enterprise Python SDK can be packaged within your Splunk app or add-on.
$SPLUNK_HOME/etc/apps/your_app_name/bin/lib
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "lib"))
The following is an example for a custom search command:
from splunklib.searchcommands import dispatch, GeneratingCommand, Configuration, Option, validators
Visual Studio Code will provide IntelliSense for the SDK
A comprehensive guide to getting started with the Splunk Enterprise JavaScript SDK is available at dev.splunk.com including installation instructions, documentation, and examples.
The Visual Studio Code debugger extension for Google Chrome allows you to debug your JavaScript code in the Google Chrome browser, or other targets that support the Chrome DevTools Protocol.