Email output with mandrill

(Clay Gorman) #1


I am running logstash 2.0 and I configured email output for mandrill and emails dont send and debug info doesnt seem very helpful.

My settings are basically

  output {
             email {
                     address => ""
                     port => 587 
                     use_tls => true
                     username => ""
                     password => "apikey"
                     authentication => "plain"
                     domain => ""
                     from => ""
                     to => ""
                     via => "smtp"
                     debug => true
                     subject => "CRITICAL test"
                     body => "test again"

And when i run in foreground I only thing I see is

Creating mail with these settings :  {:via=>"smtp", :options=>nil, :from=>"", :to=>"", :cc=>nil, :subject=>"CRITICAL test", :body=>"test again", :content_type=>"text/html; charset=UTF-8", :htmlbody=>"", :attachments=>[], :level=>:debug, :file=>"logstash/outputs/email.rb", :line=>"109", :method=>"receive"}
Sending mail with these values :  {:from=>[""], :to=>[""], :cc=>[], :subject=>"CRITICAL test", :level=>:debug, :file=>"logstash/outputs/email.rb", :line=>"138", :method=>"receive"}

I was wondering if any of my settings seem obviously wrong? I omitted usernames/passwords for security but message is otherwise copy and paste. I also run ngrep on port 587 and see nothing so seems like its not even trying.

Any help is appreciated.

(Clay Gorman) #2

looks like getting rid of authentication option fixes it

(system) #3