From 847a430f2280f52d05578099d6f39e5c3cf98548 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Tue, 25 May 2021 17:21:02 +0200 Subject: [PATCH] Added user agent '-' as bot in log analyze. --- src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java b/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java index 4b8ce02..571a096 100644 --- a/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java +++ b/src/fr/devinsy/statoolinfos/metrics/http/HttpAccessLog.java @@ -193,6 +193,10 @@ public class HttpAccessLog { result = true; } + else if (StringUtils.equalsAnyIgnoreCase(this.userAgent.toString(), "-")) + { + result = true; + } else { result = false;