I am trying to use imap input filter. Using gmail account for testing purposes. Config File
input {
imap {
host => "imap.gmail.com"
user => "someuser@gmail.com"
password => "somepassword"
port => 993
type => "imap"
}
}
output {
stdout { codec => rubydebug }
}
Output Error
←[31mA plugin had an unrecoverable error. Will restart this plugin.
Plugin: <LogStash::Inputs::IMAP host=>"imap.gmail.com", user=>"someuser@gmail.com", type=>"imap", content_type=>"text/plain">
Error: Connection refused - Connection refused {:level=>:error}←[0m
←[31mA plugin had an unrecoverable error. Will restart this plugin.
Plugin: <LogStash::Inputs::IMAP host=>"imap.gmail.com", user=>"someuser@gmail.com", type=>"imap", content_type=>"text/plain">
Error: Connection refused - Connection refused {:level=>:error}←[0m
IOError: closed stream
close at org/jruby/RubyIO.java:2096
teardown at C:/Tools/logstash-1.4.2/lib/logstash/inputs/imap.rb:145
inputworker at C:/Tools/logstash-1.4.2/lib/logstash/pipeline.rb:184
start_input at C:/Tools/logstash-1.4.2/lib/logstash/pipeline.rb:157
imap.gmail.com:993 should be available for connections. I'm able to connect. What if you try yourself with telnet (telnet imap.gmail.com 993)? Until that works there's no point trying with Logstash.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.