On Sun, Mar 17, 2019 at 01:21:32AM -0400, yuy wrote: Hi there,
> I am trying to enable access log for stream on 1.15.9-1~xenial but > log_format definition doesn't seem to work. Config syntax check fails as if > stream log_format was not defined The error reports that "proxy" is unknown on line 3. You use "proxy" on line 3, and define it from line 4. > stream{ > > access_log /var/log/nginx/stream.access.log proxy; > log_format proxy '$remote_addr [$time_local] ' > '$protocol $status $bytes_sent $bytes_received ' > '$session_time "$upstream_addr" ' > '"$upstream_bytes_sent" "$upstream_bytes_received" > "$upstream_connect_time"'; > ... > } Switch the order of those directives and it should work. f -- Francis Daly fran...@daoine.org _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx