Quantcast
Viewing latest article 1
Browse Latest Browse All 3

Answer by jozwikjp for How to forward specific log file outside of /var/log with rsyslog to remote server?

On ubuntu, I had to also comment out the drop privileges lines in order to get the rsyslog to actually read the log file outside of /var/logs.

#/etc/rsyslog.conf$ModLoad imfile$InputFileName /data/mysql/error.log$InputFileTag mysql-error$InputFileStateFile stat-mysql-error$InputFileSeverity error$InputFileFacility local3$InputRunFileMonitorlocal3.* @@hostname:<portnumber># Set the default permissions for all log files.##$FileOwner syslog#$FileGroup adm#$FileCreateMode 0640#$DirCreateMode 0755#$Umask 0022#$PrivDropToUser syslog#$PrivDropToGroup syslog

Viewing latest article 1
Browse Latest Browse All 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>