https://github.com/larschri/loghighlight
Highlight rare words in logfiles
https://github.com/larschri/loghighlight
ansi-colors highlighting logging
Last synced: 6 months ago
JSON representation
Highlight rare words in logfiles
- Host: GitHub
- URL: https://github.com/larschri/loghighlight
- Owner: larschri
- Created: 2021-09-17T16:18:07.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-28T22:05:16.000Z (over 4 years ago)
- Last Synced: 2024-06-20T05:09:21.228Z (about 2 years ago)
- Topics: ansi-colors, highlighting, logging
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Loghighlight
For terminals that support ANSI color codes.
Pipe a log file through this tool to highlight words that haven't appeared in the last n lines.
## Description
Some log files contain repeating lines that can make it hard to notice other lines in between. This tool will leave repetitive words alone and highlight words that are not present in the last N (configurable number of) lines.
The input are tokenized and tokens ("words") with only unicode letters may be highlighted, not numbers or special characters. The number of lines to consider when highlighting can be specified as a parameter. Stdin and stdout are used.
## Example
Install
```
go install github.com/larschri/loghighlight
```
Run
```
loghighlight < /var/log/syslog | less -R
```