You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that we can't have multiple access_log in the vhost conf, the reason why you would need more that one is if you have to log to a file and also send logs to syslog.
Is there a quick fix without modifying the existing code?
The text was updated successfully, but these errors were encountered:
jlory
changed the title
Allow multiple access_log within server{}
Allow multiple access_log within server{} ( files + syslog )
Nov 2, 2015
Yes there is add it like this on one line in the vhost section or http section depending what logs you want
access_log: syslog:server=logs:12301 graylog2_format; access_log /var/log/nginx/prod.ext.oca.com.ar.access.log
just change the server=logs with your server
#888 adds this functionality in both main config and vhosts, though you can't set the format differently for each acess_log directive (without using the workaround above).
It seems that we can't have multiple access_log in the vhost conf, the reason why you would need more that one is if you have to log to a file and also send logs to syslog.
Is there a quick fix without modifying the existing code?
The text was updated successfully, but these errors were encountered: