Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. # mail,logを1台で動かす場合
  2. <source>
  3. type tail
  4. path /var/log/maillog
  5. tag maillog
  6. format /^(?<date>[^ ]+) (?<host>[^ ]+) (?<process>[^:]+): (?<message>((?<key>[^ :]+)[ :])? ?((to|from)=<(?<address>[^>]+)>)?.*)$/
  7. pos_file /var/log/td-agent/mail.pos
  8. </source>
  9.  
  10. <match maillog>
  11. type file
  12. path /var/log/td-agent/mail_log
  13. </match>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement