Nginx Log Format (#356)
* add filebeat * nginx.conf access.log * nginx.conf access.log * fix filebeat * add upstream data to access log * Update nginx.conf * Add content type header to access_log format * Add quotes * logs with wildcard to include gzipped ones * Remove filebeat config Co-authored-by: PJ <peterjan.brone@gmail.com>
This commit is contained in:
parent
e301b035ad
commit
0593b41201
|
@ -35,11 +35,13 @@ http {
|
|||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
# '$status $body_bytes_sent "$http_referer" '
|
||||
# '"$http_user_agent" "$http_x_forwarded_for"';
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" $upstream_response_time '
|
||||
'$upstream_bytes_sent $upstream_bytes_received '
|
||||
'"$upstream_http_content_type"';
|
||||
|
||||
#access_log logs/access.log main;
|
||||
access_log logs/access.log main;
|
||||
|
||||
# See Move default writable paths to a dedicated directory (#119)
|
||||
# https://github.com/openresty/docker-openresty/issues/119
|
||||
|
|
Reference in New Issue