@cryptotaxi247 / netdata-1 / commits / dac0ca128

added custom log format to web_log.conf #1792 #1793

Costa Tsaousis (ktsaou) committed Feb 17, 2017 at 10:30 UTC dac0ca12863d2ee873cfd7f0eecfce38a8dfb3fd
1 file changed +3
conf.d/python.d/web_log.conf
+3
@@ -66,6 +66,9 @@
66 # cacti: 'cacti.*' # name(dimension): REGEX to match
67 # observium: 'observium.*' # name(dimension): REGEX to match
68 # stub_status: 'stub_status' # name(dimension): REGEX to match
69 +# custom_log_format: # define a custom log format
70 +# 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+) '
71 +# time_multiplier: 1000000 # type <int> - convert time to microseconds
72
73 # ----------------------------------------------------------------------
74 # WEB SERVER CONFIGURATION