Added identify command in readme file.

This commit is contained in:
Christian P. MOMON 2021-11-29 04:14:30 +01:00
parent 698225123b
commit bf0810dd6f

View file

@ -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