https://github.com/torokmark/logan
Log analyzer for log4j logs.
https://github.com/torokmark/logan
Last synced: about 1 year ago
JSON representation
Log analyzer for log4j logs.
- Host: GitHub
- URL: https://github.com/torokmark/logan
- Owner: torokmark
- License: mit
- Created: 2017-04-07T21:04:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-07T21:55:30.000Z (about 9 years ago)
- Last Synced: 2025-01-28T18:30:53.766Z (over 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# logan
Log analyzer for log4j logs.
### Help
* `-D` : date filtering
* `-T` : time filtering
* `-S` : severity filtering
* `-M` : error messaga filtering
### Good to know:
* `-M` has to be the last option, it can contain white spaces
* The order and the multiplicity of `-D`, `-T`, `-S` are irrelevant.
The last one will be chosen.
### Usage:
* `logan.sh -D2012-12-08` : it seeks all loglines with this match in date column
* `logan.sh -D2012-12-* -SSEVERE` : it seeks all lines in all days in `Dec.2012.` with `SEVERE` level
* `logan.sh -D2012-12-* -D2012-12-08` : it takes all lines matching on `08.Dec.2012`
* `logan.sh -T12:*:* -D2012-12-*` : it takes all lines matching on `Dec.2012` between noon and 1PM
* `logan.sh -MError message comes here` : it seeks all lines matching on `"Error message comes here"`
* `logan.sh -MError msg -D2012-12-12` : it seeks `"Error msg -D2012-12-12"`