在 rsyslog 中收取 syslog 後, 另存新檔

http://www.xdracco.net/howto-log-remote-devices-with-rsyslog/

 

  1. # Network Device Logging
  2. $template NetworkLog, “/var/log/network/%HOSTNAME%.log”
  3. :fromhost-ip, isequal, “192.168.1.254” -?NetworkLog
  4. & ~

Leave a comment

Your comment


Warning: Undefined variable $user_ID in /var/www/sites/wordpress/wp-content/themes/librio/comments.php on line 67