daily pastebin goal
65%
SHARE
TWEET

Untitled

a guest Jul 13th, 2012 25 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /etc/rsyslog.d/00-remote-collector.conf
  2. # provides UDP syslog reception
  3. $ModLoad imudp
  4. $UDPServerRun 514
  5. $AllowedSender UDP, ...
  6.  
  7. # provides TCP syslog reception
  8. $ModLoad imtcp
  9. $InputTCPMaxSessions 2048
  10. $InputTCPServerRun 601
  11. $AllowedSender TCP, ...
  12.  
  13. $template DailyPerHostLogs,"/var/log/remote/hosts/%fromhost:R,ERE,1,FIELD:^([^\.]*)\.x\.y\.z$--end:secpath-replace%/%syslogfacility-text%.log-%$YEAR%%$MONTH%%$DAY%"
  14. *.* -?DailyPerHostLogs
  15.  
  16. # purge all remote messages from queue, and let the loghost process its local logs.
  17. if $fromhost-ip != '127.0.0.1' then ~
  18.  
  19. /etc/rsyslog.d/send-to-loghost.conf
  20. *.* @@loghost0.x.y.z:601
  21. *.* @@loghost1.x.y.z:601
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top