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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -