Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input { stdin { type => "stdin-type" } file { type => "syslog" path => [ "/var/log/system.log" ] } } output { stdout { } email { to => "[email protected]" subject => "Logstash Alert" body => "This is the log that generated this alert:" htmlbody => "<h2>%{matchName}</h2><br/><br/><h3>Full Event</h3><br/><br/><div align='center'>%{@message}</div>" via => "smtp" options => [ "address", "smtp.gmail.com", "port", "587", "domain", "example.com", "user_name", "[email protected]", "password", "some4password", "authentication", "login", "enable_starttls_auto", "true" ] } }
Advertisement
Add Comment
Please, Sign In to add comment