Nginx access log query string params per line.

Francis Daly francis at daoine.org
Tue Feb 5 19:54:57 UTC 2019


On Thu, Jan 31, 2019 at 05:25:00PM -0500, c0nw0nk wrote:

Hi there,

> The access.log file shows 
> 
> query1=param1&query2=param2
> 
> All on the same line isit possible to split these up onto diifferent lines.
> 
> Example.
> 
> query1=param1
> 
> query2=param2

I think "no", using just stock nginx config.

However -- is it acceptable to post-process the log file?

  tr '&' '\n' < access.log

is one way to see what you want, without changing what nginx logs.

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list