- input {
- stdin {
- type => "stdin-type"
- }
- file {
- type => "syslog"
- path => [ "/var/log/system.log" ]
- }
- }
- output {
- stdout { }
- email {
- to => "user@example.com"
- 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", "user@example.com",
- "password", "some4password",
- "authentication", "login",
- "enable_starttls_auto", "true"
- ]
- }
- }
SHARE
TWEET
PasteBin powered by pb script for Textual - http://xeon3d.net/textual/scripts/pb/
a guest
Oct 30th, 2013
5
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
