Syntax highlight for logstash configuration files on all JetBrain IDEs (IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm)

ycintre ycintre Last update: Jul 11, 2019

IntelliJ Logstash configuration highlight

Syntax highlight for logstash configuration files on all JetBrain IDEs (IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm)

Screenshot Theme IntelliJScreenshot Theme IntelliJ

Installation

Import settings (recommended)

  1. Download logstash-conf.jar
  2. Open IntelliJ
  3. Click on File > Import Settings...
  4. Browse to the downloaded jar (tip: you can also drag & drop the jar from your file explorer to the Import File Location window) and click OK
  5. Be sure to check File types (schemes) and click OK
  6. Restart IntelliJ when prompted

Manual

  1. Download logstash-conf.xml
  2. Close IntelliJ
  3. Copy the xml to <your_home_dir>\<intellij_settings_dir>\config\filetypes\ (create folder filetypes if it doesn't exists)
  4. Open IntelliJ

Highlighted syntax and keywords

The filetype use IntelliJ sandard 4 colors highlight system

Color 1

Highlight basic pipeline keywords: filter, input, output

See 1-pipeline.md for the full keyword list

Color 2

Highlight plugins names:

See 2-plugins-names.md for the full keyword list

Color 3

Highlight plugins actions

See 3-codec-plugins-actions.md, 3-filter-plugins-actions.md, 3-input-plugins-actions.md and 3-output-plugins-actions.md for the full keyword list

Color 4

Highlight conditional operators

See 4-conditional.md for the full keyword list

Subscribe to our newsletter