Crates.io | summertail |
lib.rs | summertail |
version | 0.3.0 |
source | src |
created_at | 2022-08-17 08:07:08.587587 |
updated_at | 2022-08-17 08:07:08.587587 |
description | Summarize your tail -f output, by reporting how many lines match regexes |
homepage | https://github.com/amandasaurus/summertail |
repository | https://github.com/amandasaurus/summertail |
max_upload_size | |
id | 647238 |
size | 48,599 |
summertail
Summarize your tail -f
output, with regexesYou 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 © 2022, GNU Affero GPL licence v3 or later.