summertail

Crates.iosummertail
lib.rssummertail
version0.3.0
sourcesrc
created_at2022-08-17 08:07:08.587587
updated_at2022-08-17 08:07:08.587587
descriptionSummarize your tail -f output, by reporting how many lines match regexes
homepagehttps://github.com/amandasaurus/summertail
repositoryhttps://github.com/amandasaurus/summertail
max_upload_size
id647238
size48,599
Amanda (amandasaurus)

documentation

https://github.com/amandasaurus/summertail

README

summertail Summarize your tail -f output, with regexes

You won't be able to count how many apache 200's are in the logs, so use a regex counter.

summertail DELAY REGEX1 REGEX2 ...

Reads input from stdin, and for each line keeps track of how many of each REGEX is matched. Every DELAY seconds, the counters are reset, and a \n is printed.

The last column (other) is incremented for every line which doesn't match any of the regexes. If a line matches more than one regex, it will be counted for each regex.

If the REGEX starts with ! it will invert the regex. i.e. it counts lines which don't match that regex.

Install with cargo install summertail.

Copyright

Copyright © 2022, GNU Affero GPL licence v3 or later.

Commit count: 8

cargo fmt