A log filtering program inspired by uno.
Looks like the company behind uno was acquired some time ago, I think the same blog content is still available though.
After reading the above blog post, I set out to build something that sounds
similar. To be clear, I don't know how uno
works other than what is
described in the post, and I'm pretty sure it's more sophisticated than
described.
go get -u github.com/jhjaggars/uniqish
uniqish < /path/to/logfile
By default the program will attempt to filter out log lines that look similar to some defined amount of previous lines. This is implemented by using a frecency cache (the most recent and frequently accessed lines).
Each line is compared to each line in the cache by skipping a common-ish prefix and then taking the edit distance.