Advertisement
fduran

Linux remote syslog

Feb 20th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. www.fduran.com
  2. Remote syslogging in Linux
  3.  
  4. 1. On logging server 'logserver':
  5. # nano /etc/rsyslog.conf
  6.  
  7. uncomment:
  8. # provides UDP syslog reception
  9. $ModLoad imudp
  10. $UDPServerRun 514
  11.  
  12. 2. On sending server:
  13. # nc -w0 -u logserver 514 <<< "<14>FDV User Info msg from remote"
  14.  
  15. You can use 'logger' to save locally too
  16.  
  17. codes:
  18. <13> User.Notice
  19. <14> User.Info
  20. see http://linux.byexamples.com/archives/412/syslog-sending-log-from-remote-servers-to-syslog-daemon/
  21.  
  22. Check on log server:
  23. # tail /var/log/messages
  24. ...
  25. FDV User Info msg from remote
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement