]> arthur.barton.de Git - netdata.git/commitdiff
web_log plugin: configuration file update
authorIlya <ilyamaschenko@gmail.com>
Fri, 10 Feb 2017 00:44:09 +0000 (09:44 +0900)
committerIlya <ilyamaschenko@gmail.com>
Fri, 10 Feb 2017 00:44:09 +0000 (09:44 +0900)
conf.d/python.d/web_log.conf

index 101af0cb675af48cc0b61b5c594df868742adc5c..a6d48b8464f688dffd05a758a892a731d3750a02 100644 (file)
 #          observium: 'observium.*'       # name(dimension): REGEX to match
 #          stub_status: 'stub_status'     # name(dimension): REGEX to match
 #
-
+# Preferable Log Format. You need to change to this to collect all metrics.
+# Nginx: 
+#        log_format netdata '$remote_addr - $remote_user [$time_local] '
+#                           '"$request" $status $body_bytes_sent '
+#                           '$request_length $request_time '
+#                           '"$http_referer" "$http_user_agent"';
+#        access_log /var/log/nginx/access.log netdata;
+# Apache:
+#        LogFormat "%h %l %u %t \"%r\" %>s %O %I %D \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
+#        LogFormat "%h %l %u %t \"%r\" %>s %O %I %D \"%{Referer}i\" \"%{User-Agent}i\"" combined
 # ----------------------------------------------------------------------
 # AUTO-DETECTION JOBS
-# only one of them will run (they have the same name)
+# only one of them will run (if they have the same name)
+
+# debian
 nginx_log:
   name: 'nginx'
   path: '/var/log/nginx/access.log'
 
+# gentoo
+nginx_log2:
+  name: 'nginx'
+  path: '/var/log/nginx/localhost.access_log'
+
+# debian
 apache_log:
+  name: 'apache'
+  path: '/var/log/apache2/access.log'
+
+# gentoo
+apache_log2:
+  name: 'apache'
+  path: '/var/log/apache2/access_log'
+
+# arch
+apache_log3:
+  name: 'apache'
+  path: '/var/log/httpd/access_log'
+
+apache_vhosts_log:
   name: 'apache_vhosts'
   path: '/var/log/apache2/other_vhosts_access.log'
+
+gunicorn_log:
+  name: 'gunicorn'
+  path: '/var/log/gunicorn/access.log'
+
+gunicorn_log2:
+  name: 'gunicorn'
+  path: '/var/log/gunicorn/gunicorn-access.log'