Create Projects from Templates - splunk/vscode-extension-splunk GitHub Wiki

The Visual Studio Extension for Splunk includes commands to create project template scaffolding. Everything is set up for you automatically (including any post-build scripts) so you can start coding easily.

Create a Custom Visualization

  1. Open the Command palette.
  2. Type >Splunk: New Custom Visualization.
  3. Select a destination for the visualization.
  4. Select a name for the visualization.

A new Visual Studio Code instance runs with visualization_source.js file opened. This file is where most Custom Visualization code goes. Splunk documentation also opens for more information on Custom Visualizations.

images/custom_viz.gif

Create a Custom Search Command

  1. Open the Command palette.
  2. Type >Splunk: New Custom Command.
  3. Select a destination for the visualization.
  4. Select a name for the command app.

A new Visual Studio Code instance runs with the app folder opened. Splunk documentation also opens for more information on Custom Search Commands.

images/custom_command.gif