How to configure Logstash IMAP plugin to fetch email from SMTP Server -
i have smtp server (using virtual smtp server on windows server 2012), , centos machine. on centos machine, installed elk. want configure logstash email smtp server using imap plugin.
please me.
thank much.
the below logstash configuration should work. please change settings , output plugins per need.
logstash.conf
input{ imap{ host => "server_ip" user => "username" password => "************" port => port_number secure => true/false check_interval => interval_seconds } } output{ stdout{ codec => "json" } }
then start logstash using below command
bin/logstash -f "logstash.conf"
this should check emails every configured check_interval duration in seconds , trigger event.
Comments
Post a Comment