Created
January 19, 2024 15:15
-
-
Save 4lun/9a9bd9c3d195d22005216d71ec661b55 to your computer and use it in GitHub Desktop.
Nginx server block config lines for piping access_log and error_log to syslog (useful for then getting relayed to papertrail). Source: https://chabik.com/nginx-logging-to-syslog/
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
access_log syslog:server=unix:/dev/log,tag=nginx,nohostname,severity=info combined; | |
error_log syslog:server=unix:/dev/log,tag=nginx,nohostname,severity=error; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment