Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
nginx configuration for rsyslog
$ModLoad imfile
$InputFileName /var/log/nginx/error.log
$InputFileTag nginx:
$InputFileStateFile stat-nginx-error
$InputFileSeverity warning
$InputFileFacility local7
$InputFileName /var/log/nginx/access.log
$InputFileTag nginx:
$InputFileStateFile stat-nginx-access
$InputFileSeverity info
$InputFileFacility local7
$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
You can’t perform that action at this time.