diff --git a/examples/apache_common.mtail b/examples/apache_common.mtail index 0120e2124..d25dfd830 100644 --- a/examples/apache_common.mtail +++ b/examples/apache_common.mtail @@ -1,5 +1,6 @@ # Parser for the common apache log format as follow. # LogFormat "%h %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-agent}i\" +# https://httpd.apache.org/docs/2.4/mod/mod_log_config.html counter apache_http_requests_total by request_method, http_version, status_code counter apache_http_bytes_total by request_method, http_version, status_code gauge apache_http_response_time by remote_host, request_method, request_uri, status_code, user_agent @@ -9,7 +10,7 @@ gauge apache_http_response_size by remote_host, request_method, request_uri, sta /(?P[0-9A-Za-z\.:-]+) / + # %h /(?P[0-9A-Za-z-]+) / + # %l /(?P[0-9A-Za-z-]+) / + # %u -/\[(?P\d{2}\/\w{3}\/\d{4}:\d{2}:\d{2}:\d{2} (\+|-)\d{4})\] / + # %u +/\[(?P\d{2}\/\w{3}\/\d{4}:\d{2}:\d{2}:\d{2} (\+|-)\d{4})\] / + # %t /"(?P[A-Z]+) (?P\S+) (?PHTTP\/[0-9\.]+)" / + # \"%r\" /(?P\d{3}) / + # %>s /((?P\d+)|-) / + # %b