Graylog2 / Graylog2/graylog2-server

Output cannot validate configuration settings before it is first invoked

Open
#988 0 comments 0 reactions 0 assignees View on GitHub
feature triaged
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.