Francis Daly
November 27, 2014 06:10PM
On Thu, Nov 27, 2014 at 04:10:58PM +0000, Ian Winter wrote:

Hi there,

> error_log syslog:server=,facility=local4,tag=nginx warn;
> access_log syslog:server=,facility=local5,tag=nginx,severity=info main;

> If however I want to have a separate access log for certain server blocks, how do I go about that

Put as many "access_log" lines as you want at the level you care about.

Normal nginx inheritance rules apply.

(The request is logged in the location{} it finishes in.)

Francis Daly

nginx mailing list
Subject Author Posted

syslog files per server entry

Ian Winter November 27, 2014 11:12AM

Re: syslog files per server entry

Francis Daly November 27, 2014 06:10PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 59
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready