From 0f4b1e2c2c685db7209fc8d7dbf7202c863152c7 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Tue, 15 Feb 2022 01:39:09 +0100 Subject: [PATCH] Improved http access log parsing. --- .../statoolinfos/metrics/http/HttpAccessLogParser.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLogParser.java b/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLogParser.java index cfa5108..4315676 100644 --- a/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLogParser.java +++ b/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLogParser.java @@ -18,8 +18,6 @@ */ package fr.devinsy.statoolinfos.metrics.http; -import java.io.File; -import java.io.IOException; import java.time.LocalDateTime; import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; @@ -27,15 +25,9 @@ import java.util.Locale; import java.util.regex.Matcher; import java.util.regex.Pattern; -import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import fr.devinsy.statoolinfos.core.StatoolInfosException; -import fr.devinsy.statoolinfos.metrics.PathCounters; -import fr.devinsy.statoolinfos.util.FilesUtils; -import fr.devinsy.statoolinfos.util.LineIterator; - /** * The Class HttpAccessLogParser. */ @@ -47,7 +39,7 @@ public class HttpAccessLogParser // '"$request" $status $body_bytes_sent ' // '"$http_referer" "$http_user_agent"'; public static final Pattern COMBINED_PATTERN = Pattern.compile( - "^(?[a-zA-F0-9\\\\:\\\\.]+) - (?[^\\[]+) \\[(?