hi all,
i am using elasticsearch + logstash + kibana ( all are updated version). i enabled the email plugin in output section but i am facing following error:
output {
elasticsearch {
hosts => ["localhost:9200"]
sniffing => true
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
if "ERROR" in [message] {
email {
port => "587"
address => "smtp.gmail.com"
username => "xxxx@gmail.com"
password => "xxxxxxxx"
authentication => "plain"
use_tls => true
from => "xxxx@gmail.com"
subject => "logstash alert"
to => "xxxxxx@gmail.com"
via => "smtp"
body => "COOL 06... Here is the event line that occured: %{message}"
}
}
stdout { codec => rubydebug }
}
$ bin/logstash -t -f conf.d/openstack.conf
The error reported is:
undefined method `on_load' for ActiveSupport:Module
how to resolve this error.
Any suggestions.
thanks & regards,
cooldharma06 ..