mega-linter-plugin-logstash
October 27, 2022 ยท View on GitHub
This is a linter plugin for the excellent MegaLinter, which supports checking Logstash pipeline definition files using mustache.
Usage
To enable this plugin into your Megalinter config, add the following in your .mega-linter.yml:
PLUGINS:
- https://raw.githubusercontent.com/one-acre-fund/mega-linter-plugin-logstash/main/mega-linter-plugin-logstash/logstash.megalinter-descriptor.yml
ENABLE_LINTERS:
- LOGSTASH_MUSTACHE
By default, the plugin will scan all *.conf file on your project, which might be broader than you'd like, so you may want to tweak the file selection options using the usual parameters, including:
LOGSTASH_DIRECTORYLOGSTASH_MUSTACHE_FILTER_REGEX_INCLUDELOGSTASH_MUSTACHE_FILTER_REGEX_EXCLUDELOGSTASH_MUSTACHE_FILE_EXTENSIONSLOGSTASH_MUSTACHE_FILE_NAMES_REGEX