daily pastebin goal
23%
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!
  1. input {
  2.   stdin {
  3.     type => "stdin-type"
  4.   }
  5.  
  6.   file {
  7.     type => "syslog"
  8.         path => [ "/var/log/system.log" ]
  9.   }
  10. }
  11.  
  12. output {
  13.   stdout { }
  14.   email {
  15.          to => "user@example.com"
  16.          subject => "Logstash Alert"
  17.          body => "This is the log that generated this alert:"
  18.          htmlbody => "<h2>%{matchName}</h2><br/><br/><h3>Full Event</h3><br/><br/><div align='center'>%{@message}</div>"
  19.          via => "smtp"
  20.          options => [   "address", "smtp.gmail.com",
  21.                                         "port", "587",
  22.                                         "domain", "example.com",
  23.                                         "user_name", "user@example.com",
  24.                                         "password", "some4password",
  25.                                         "authentication", "login",
  26.                                         "enable_starttls_auto", "true"
  27.                                 ]
  28.   }
  29. }
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. OK, I Understand
 
Top