mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
The match option is required for the email output plugin
Whilst modifying the plugin to support sendmail delivery
the requirement for the match option was removed.
The change was made in this commit:
ef28018494
This causes the email plugin to fail with the following error:
undefined method `each' for nil:NilClass
Tracing back to:
/opt/logstash/logstash.jar!/logstash/outputs/email.rb:173:in `receive'"
This commit reverts that change and marks the match option as
required.
This commit is contained in:
parent
3132c2a5fc
commit
1e02e986ef
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class LogStash::Outputs::Email < LogStash::Outputs::Base
|
|||
|
||||
# the registered fields that we want to monitor
|
||||
# A hash of matches of field => value
|
||||
config :match, :validate => :hash
|
||||
config :match, :validate => :hash, :required => true
|
||||
|
||||
# the To address setting - fully qualified email address to send to
|
||||
config :to, :validate => :string, :required => true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue