Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. $ModLoad ommail
  2. $ActionMailSMTPServer mydomain.com
  3. $ActionMailFrom example@mydomain.com
  4. $ActionMailTo example@gmail.com
  5. $template mailSubject,"User logged into %hostname%"
  6. $template mailBody,"RSYSLOG Alertrnmsg='%msg%'"
  7. $ActionMailSubject mailSubject
  8. $ActionExecOnlyOnceEveryInterval 60
  9. if $msg contains 'session opened for user' then :ommail:;mailBody
  10.  
  11. if $msg contains 'Accepted password for' then :ommail:;mailBody
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement