-
-
Save mjcreativeventures/db263a2fb111ef2cdfb8 to your computer and use it in GitHub Desktop.
nginx configuration for rsyslog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/etc/rsyslog.d/40-nginx.conf | |
$ModLoad imfile | |
$InputFileName /var/log/nginx/error.log | |
$InputFileTag nginx: | |
$InputFileStateFile stat-nginx-error | |
$InputFileSeverity warning | |
$InputFileFacility local7 | |
$InputRunFileMonitor | |
$InputFileName /var/log/nginx/access.log | |
$InputFileTag nginx: | |
$InputFileStateFile stat-nginx-access | |
$InputFileSeverity info | |
$InputFileFacility local7 | |
$InputRunFileMonitor | |
$InputFilePollInterval 10 | |
:syslogtag,isequal,"nginx:" /var/syslog/nginx.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment