Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. $ModLoad imudp.so
  2. $UDPServerRun 514
  3.  
  4. $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
  5.  
  6. # log everything to the /var/log/remotesyslog file
  7. *.* /var/log/remotesyslog
  8.  
  9. $ModLoad imuxsock
  10. $ModLoad imjournal
  11.  
  12. $ModLoad imudp.so
  13. $UDPServerRun 514
  14.  
  15. $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
  16. $IncludeConfig /etc/rsyslog.d/*.conf
  17. $IMJournalStateFile imjournal.state
  18.  
  19. authpriv.* /var/log/secure
  20. mail.* -/var/log/maillog
  21. cron.* /var/log/cron
  22. *.emerg *
  23. uucp,news.crit /var/log/spooler
  24. local7.*
  25.  
  26. /var/log/boot.log
  27.  
  28. # forward everything over UDP to watcher
  29. *.* @@10.0.1.1:514
  30.  
  31. user@guineapig ~$ logger "please work"
  32. # doesn't work
  33.  
  34. user@guineapig ~$ logger -n 10.0.1.1 "please work for real"
  35. # works
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement