Skip to content

Working with .conf files

JasonConger edited this page Jan 10, 2020 · 9 revisions

This extension introduces several useful features for working with Splunk .conf files

Stanza Completion

To enable stanza code-completion, simply create or open a Splunk .conf file (like inputs.conf for example). When you type a [ character, all valid stanza for the current text file will be displayed.

Setting Completion

To enable setting code-completion, start typing text on a line under a stanza or press ctrl + spacebar to display available settings for the current stanza. Documentation about these settings will also be displayed.

Stanza Folding

When working with long files, stanzas can be collapsed for easier viewing. To collapse/expand all stanza, use the following shortcuts:

Fold All:

  • Windows: Ctrl + k + 0
  • Mac: + k + 0

Unfold All:

  • Windows: Ctrl + k + j
  • Mac: + k + j

Linting

Linting is the process of running a program that will analyze code for potential errors. This extension compares stanzas and settings to the spec files to call attention to potential errors.

Clone this wiki locally