Trace: rsyslog
  • Mengirimkan authlog ke remote syslog
authpriv.* @10.xx.xx.xx:port_rsyslog
  • Mengirimkan log http ke rsyslog

Tambahkan baris berikut di config apache

CustomLog "|/usr/bin/logger -t apache -p local6.info" combined

autau jika menggunakan vhost

CustomLog "|/usr/bin/logger -t apache -p local6.info" combinedvhost

selanjutnya di file /etc/rsyslog.conf tambahkan baris berikut

local6.info @ip_remote_rsyslog:port

jangan lupa tambahkan baris berikut di bagian belakang pada opsi config /var/log/messages

local6.info.none
  • rsyslog nginx 1.7 and newer
access_log syslog:server=10.13.254.172 combined;

##custom port

access_log syslog:server=10.13.249.93:5544 combined;
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki