Compare commits
2 commits
3fcb303a91
...
9caa833856
Author | SHA1 | Date | |
---|---|---|---|
9caa833856 | |||
6455fc7e90 |
2 changed files with 6 additions and 4 deletions
|
@ -270,7 +270,7 @@ conf.probe.target=/srv/statoolinfos/well-known/statoolinfos/foo.bar.org-metrics.
|
||||||
# Default: ^(?<remoteAddress>[a-fA-F0-9\:\.]+) - (?<remoteUser>[^\[]+) \[(?<time>[^\]]+)\] "(?<request>([^\"]|\")*)" (?<status>\d+) (?<bodyBytesSent>\d+) "(?<referer>([^\"]|\")*)" "(?<userAgent>([^\"]|\")*)".*$
|
# Default: ^(?<remoteAddress>[a-fA-F0-9\:\.]+) - (?<remoteUser>[^\[]+) \[(?<time>[^\]]+)\] "(?<request>([^\"]|\")*)" (?<status>\d+) (?<bodyBytesSent>\d+) "(?<referer>([^\"]|\")*)" "(?<userAgent>([^\"]|\")*)".*$
|
||||||
conf.probe.httpaccesslog.pattern=
|
conf.probe.httpaccesslog.pattern=
|
||||||
|
|
||||||
# Custom datetime access log pattern (https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html#patterns).
|
# Custom datetime access log pattern (https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html#patterns). The language ID is mandatory.
|
||||||
# Default: dd/MMM/yyyy:HH:mm:ss Z|EN
|
# Default: dd/MMM/yyyy:HH:mm:ss Z|EN
|
||||||
conf.prob.httpaccesslog.datetimepattern=
|
conf.prob.httpaccesslog.datetimepattern=
|
||||||
|
|
||||||
|
@ -278,12 +278,12 @@ conf.prob.httpaccesslog.datetimepattern=
|
||||||
# Example: pathfilter=/.*well-known.*
|
# Example: pathfilter=/.*well-known.*
|
||||||
conf.probe.httpaccesslog.pathfilter=
|
conf.probe.httpaccesslog.pathfilter=
|
||||||
|
|
||||||
# Custom error log pattern with Java regex.
|
# Custom error log pattern with Java regex. By default, automatic detection.
|
||||||
# Default Apache: ^\[(?<time>[^\]]+)\]\s\[(?<level>[^\]]*)\]\s(?<message>.*)$
|
# Default Apache: ^\[(?<time>[^\]]+)\]\s\[(?<level>[^\]]*)\]\s(?<message>.*)$
|
||||||
# Default NGinx: ^(?<time>\S+\s\S+)\s\[(?<level>[^\]]*)\]\s(?<message>.*)$
|
# Default NGinx: ^(?<time>\S+\s\S+)\s\[(?<level>[^\]]*)\]\s(?<message>.*)$
|
||||||
conf.probe.httperrorlog.pattern=
|
conf.probe.httperrorlog.pattern=
|
||||||
|
|
||||||
# Custom datetime access log pattern (https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html#patterns).
|
# Custom datetime access log pattern (https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html#patterns). The language ID is mandatory.
|
||||||
# Default: dd/MMM/yyyy:HH:mm:ss Z|EN
|
# Default: dd/MMM/yyyy:HH:mm:ss Z|EN
|
||||||
conf.prob.httperrorlog.datetimepattern=
|
conf.prob.httperrorlog.datetimepattern=
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2020-2023 Christian Pierre MOMON <christian@momon.org>
|
* Copyright (C) 2020-2024 Christian Pierre MOMON <christian@momon.org>
|
||||||
*
|
*
|
||||||
* This file is part of StatoolInfos, simple service statistics tool.
|
* This file is part of StatoolInfos, simple service statistics tool.
|
||||||
*
|
*
|
||||||
|
@ -152,6 +152,7 @@ public class FilesUtils
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
iterator = new FilesLineIterator(files);
|
iterator = new FilesLineIterator(files);
|
||||||
|
iterator.setPrintOff();
|
||||||
|
|
||||||
boolean ended = false;
|
boolean ended = false;
|
||||||
while (!ended)
|
while (!ended)
|
||||||
|
@ -168,6 +169,7 @@ public class FilesUtils
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
result = null;
|
result = null;
|
||||||
|
ended = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue