]> arthur.barton.de Git - netdata.git/commitdiff
added custom log format to web_log.conf #1792 #1793
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Fri, 17 Feb 2017 08:30:54 +0000 (10:30 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Fri, 17 Feb 2017 08:30:54 +0000 (10:30 +0200)
conf.d/python.d/web_log.conf

index 3b67a8cb435313e6885a1a006db4b42b4b4d72fd..6a8e6480528695a6f5e8916d956a791213c51d60 100644 (file)
@@ -66,6 +66,9 @@
 #          cacti: 'cacti.*'               # name(dimension): REGEX to match
 #          observium: 'observium.*'       # name(dimension): REGEX to match
 #          stub_status: 'stub_status'     # name(dimension): REGEX to match
+#     custom_log_format:                  # define a custom log format
+#          pattern: '(?P<address>[\da-f.:]+) -.*?"(?P<method>[A-Z]+) (?P<url>.*?)" (?P<code>[1-9]\d{2}) (?P<bytes_sent>\d+) (?P<resp_length>\d+) (?P<resp_time>\d\.\d+) '
+#          time_multiplier: 1000000       # type <int> - convert time to microseconds
 
 # ----------------------------------------------------------------------
 # WEB SERVER CONFIGURATION