I am trying to read the emails from the outlook.
input {
imap {
host => "outlook.office365.com"
password => "********"
user => "*********"
port => 993
secure => true
check_interval => 10
folder => "XYZ"
}
}
output {
stdout { codec => rubydebug }
elasticsearch {
index => "emails"
document_type => "email"
hosts => "localhost:9200"
}
}
[2019-10-18T00:44:39,270][ERROR][logstash.javapipeline ] A plugin had an unrecoverable error. Will restart this plugin.
Pipeline_id:main
Plugin: <LogStash::Inputs::IMAP password=>, check_interval=>10, folder=>"XYZ", port=>993, host=>"outlook.office365.com", id=>"", user=>"********", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>"plain_", enable_metric=>true, charset=>"UTF-8">, secure=>true, verify_cert=>true, fetch_count=>50, lowercase_headers=>true, delete=>false, expunge=>false, strip_attachments=>false, content_type=>"text/plain">
Error: LOGIN failed.
Exception: Net::IMAP::NoResponseError
Stack: uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/imap.rb:1217:in get_tagged_response' uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/imap.rb:1271:in
block in send_command'
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/monitor.rb:226:in mon_synchronize' uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/imap.rb:1253:in
send_command'
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/imap.rb:441:in login' C:/Ashok/logstash-7.1.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-imap-3.0.6/lib/logstash/inputs/imap.rb:62:in
connect'
C:/study/logstash-7.1.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-imap-3.0.6/lib/logstash/inputs/imap.rb:76:in check_mail' C:/study/logstash-7.1.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-imap-3.0.6/lib/logstash/inputs/imap.rb:69:in
block in run'
C:/study/logstash-7.1.1/vendor/bundle/jruby/2.5.0/gems/stud-0.0.23/lib/stud/interval.rb:20:in interval' C:/study/logstash-7.1.1/vendor/bundle/jruby/2.5.0/gems/logstash-input-imap-3.0.6/lib/logstash/inputs/imap.rb:68:in
run'
C:/study/logstash-7.1.1/logstash-core/lib/logstash/java_pipeline.rb:297:in inputworker' C:/study/logstash-7.1.1/logstash-core/lib/logstash/java_pipeline.rb:290:in
block in start_input'
[2019-10-18T00:44:40,258][DEBUG][logstash.config.source.local.configpathloader] Skipping the following files while reading config since they don't match the specified glob pattern