summaryrefslogtreecommitdiffstats
path: root/conf.d/python.d/web_log.conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d/python.d/web_log.conf')
-rw-r--r--conf.d/python.d/web_log.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/conf.d/python.d/web_log.conf b/conf.d/python.d/web_log.conf
index e70103cdae..a67957aeff 100644
--- a/conf.d/python.d/web_log.conf
+++ b/conf.d/python.d/web_log.conf
@@ -109,6 +109,17 @@
# CustomLog "/var/log/apache2/access.log" netdata
# ----------------------------------------------------------------------
+# VHOST AND PORT
+# if your want to graph the request/sec per virtual host and per port (to check the number of requests in http vs https)
+
+# in apache : (%v gives the hostname, %p the port number)
+# LogFormat "%v %p %h %t \"%r\" %>s %O %I %D \"%{Referer}i\" \"%{User-Agent}i\"" vhost_netdata
+#
+# and in this file in apache_vhosts_log section, add :
+# custom_log_format:
+# pattern: '(?P<vhost>[a-zA-Z\d.-_]+) (?P<port>\d+) (?P<address>[\da-f.:]+) \[.*\] "(?P<method>[A-Z]+)[^"]*" (?P<code>[1-9]\d{2}) (?P<bytes_sent>\d+) (?P<resp_length>\d+) (?P<resp_time>\d+)'
+
+# ----------------------------------------------------------------------
# AUTO-DETECTION JOBS
# only one of them per web server will run (when they have the same name)