Graylog2 / Graylog2/graylog2-server
Output cannot validate configuration settings before it is first invoked
- Dominant language
- Java
- Stars
- 8.1k
- Forks
- 1.1k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 217
Description
When you configure an Output Plugin and enter the configuration, this configuration is only evaluated when the Output is actually invoked the first time (based on a message assigned to a stream). This is because constructor `dfPlugin (@NotNullable @Assisted Stream stream, @NotNullable @Assisted Configuration configuration)` is not called before first invocation and I see no other means for the plugin to verify this configuration.
This means an operator (or script) cannot verify the proper setup of an Output (notably the checking of credentials and target system) except for _actually inserting a message into a stream_ which might pose unforeseen side-effects in production environments.
Contributor guide
Assessment
This issue has not been assessed yet.