Compare commits
2 commits
48a75bc3ab
...
bf0810dd6f
Author | SHA1 | Date | |
---|---|---|---|
bf0810dd6f | |||
698225123b |
2 changed files with 19 additions and 5 deletions
22
README.md
22
README.md
|
@ -72,15 +72,29 @@ Example:
|
||||||
This command check bad format line in log files (access or error). It is useful to detect malformed log file or test the logar parsing feature.
|
This command check bad format line in log files (access or error). It is useful to detect malformed log file or test the logar parsing feature.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
- logar check /var/log/nginx/date.chapril.org/
|
- logar check /var/log/nginx/
|
||||||
|
|
||||||
### Command checksort
|
### Command checksort
|
||||||
|
|
||||||
This command check if log lines are sorted by datetime. It is useful to detect unsorted log file. Reminder: sorted file are mandatory to Webalizer.
|
This command check if log lines are sorted by datetime. It is useful to detect unsorted log file. Reminder: sorted file are mandatory to Webalizer.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
- logar checksort /var/log/nginx/date.chapril.org/
|
- logar checksort /var/log/nginx/www.devinsy.fr/
|
||||||
- logar checksort /var/log/nginx/date.chapril.org/date.chapril.org-access-2021-01.log.gz
|
- logar checksort /var/log/nginx/www.devinsy.fr/www.devinsy.fr-access-2021-01.log.gz
|
||||||
|
|
||||||
|
|
||||||
|
### Command identify
|
||||||
|
|
||||||
|
This command identifies the files log format.
|
||||||
|
|
||||||
|
Example :
|
||||||
|
```
|
||||||
|
> logar identify .
|
||||||
|
Access/* www.libre-service.eu-access.log
|
||||||
|
Access/* www.libre-service.eu-access.log.1
|
||||||
|
Error/Apache www.libre-service.eu-error.log
|
||||||
|
Error/Apache www.libre-service.eu-error.log.1
|
||||||
|
```
|
||||||
|
|
||||||
### Command sort
|
### Command sort
|
||||||
|
|
||||||
|
@ -98,7 +112,7 @@ This command tests a advanced feature of rebuild log line. Perhaps useful featur
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- Java 11
|
- Java 17
|
||||||
- Eclipse 4.16 (202006).
|
- Eclipse 4.16 (202006).
|
||||||
|
|
||||||
## INSTALL
|
## INSTALL
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class BuildInformation
|
||||||
{
|
{
|
||||||
private static final Logger logger = LoggerFactory.getLogger(BuildInformation.class);
|
private static final Logger logger = LoggerFactory.getLogger(BuildInformation.class);
|
||||||
|
|
||||||
private static String BUILD_INFORMATION_FILE = "/org/april/logar/build_information.properties";
|
private static String BUILD_INFORMATION_FILE = "/fr/devinsy/logar/build_information.properties";
|
||||||
|
|
||||||
private static class SingletonHolder
|
private static class SingletonHolder
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue