From 3b95e5be69c199a2a195c57aba12d88c242225ac Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2019 19:57:35 +0200 Subject: Adding upstream version 1.14.0~rc0. Signed-off-by: Daniel Baumann --- collectors/python.d.plugin/web_log/web_log.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'collectors/python.d.plugin/web_log/web_log.conf') diff --git a/collectors/python.d.plugin/web_log/web_log.conf b/collectors/python.d.plugin/web_log/web_log.conf index 0ac17f665..220b7c283 100644 --- a/collectors/python.d.plugin/web_log/web_log.conf +++ b/collectors/python.d.plugin/web_log/web_log.conf @@ -117,6 +117,21 @@ # custom_log_format: # pattern: '(?P[a-zA-Z\d.-_]+) (?P\d+) (?P
[\da-f.:]+) \[.*\] "(?P[A-Z]+)[^"]*" (?P[1-9]\d{2}) (?P\d+) (?P\d+) (?P\d+)' +# in nginx: ($host or $http_host give the hostname, $server_port the port number) +# log_format netdatavhost '$host $server_port $remote_addr - $remote_user [$time_local] ' +# '"$request" $status $body_bytes_sent ' +# '$request_length $request_time $upstream_response_time ' +# '"$http_referer" "$http_user_agent"'; +# +# access_log /var/log/nginx/access.log netdatavhost; +# +# be aware that the access_log directive in a server{} block overwrites the one in http{}, if your vhosts have individual log +# files, you have to specify the general netdata log in each vhost as a second access_log statement. +# +# and in this file in nginx_log section, add : +# custom_log_format: +# pattern: '(?P[a-zA-Z\d.-_\[\]]+) (?P\d+) (?P
[\da-f.:]+) .* "(?P[A-Z]+)[^"]*" (?P[1-9]\d{2}) (?P\d+) (?P\d+) (?P\d+)' + # ---------------------------------------------------------------------- # AUTO-DETECTION JOBS # only one of them per web server will run (when they have the same name) -- cgit v1.2.3