web_log plugin: configuration file update
Ilya committed
Feb 10, 2017 at 09:44 UTC
9632996e47d5a197b1099e5e7fd39314f97f7825
1 file changed
+41
-2
conf.d/python.d/web_log.conf
+41
-2
@@ -64,14 +64,53 @@
64
# observium: 'observium.*' # name(dimension): REGEX to match
65
# stub_status: 'stub_status' # name(dimension): REGEX to match
66
#
67
-
67
+# Preferable Log Format. You need to change to this to collect all metrics.
68
+# Nginx:
69
+# log_format netdata '$remote_addr - $remote_user [$time_local] '
70
+# '"$request" $status $body_bytes_sent '
71
+# '$request_length $request_time '
72
+# '"$http_referer" "$http_user_agent"';
73
+# access_log /var/log/nginx/access.log netdata;
74
+# Apache:
75
+# LogFormat "%h %l %u %t \"%r\" %>s %O %I %D \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
76
+# LogFormat "%h %l %u %t \"%r\" %>s %O %I %D \"%{Referer}i\" \"%{User-Agent}i\"" combined
77
# ----------------------------------------------------------------------
78
# AUTO-DETECTION JOBS
70
-# only one of them will run (they have the same name)
79
+# only one of them will run (if they have the same name)
80
+
81
+# debian
82
nginx_log:
83
name: 'nginx'
84
path: '/var/log/nginx/access.log'
85
86
+# gentoo
87
+nginx_log2:
88
+ name: 'nginx'
89
+ path: '/var/log/nginx/localhost.access_log'
90
+
91
+# debian
92
apache_log:
93
+ name: 'apache'
94
+ path: '/var/log/apache2/access.log'
95
+
96
+# gentoo
97
+apache_log2:
98
+ name: 'apache'
99
+ path: '/var/log/apache2/access_log'
100
+
101
+# arch
102
+apache_log3:
103
+ name: 'apache'
104
+ path: '/var/log/httpd/access_log'
105
+
106
+apache_vhosts_log:
107
name: 'apache_vhosts'
108
path: '/var/log/apache2/other_vhosts_access.log'
109
+
110
+gunicorn_log:
111
+ name: 'gunicorn'
112
+ path: '/var/log/gunicorn/access.log'
113
+
114
+gunicorn_log2:
115
+ name: 'gunicorn'
116
+ path: '/var/log/gunicorn/gunicorn-access.log'