tstack / lnav

Log file navigator
http://lnav.org
BSD 2-Clause "Simplified" License
7.15k stars 294 forks source link

SUGGESTION: fancy handling of syslog "last message repeated X times" #396

Open tolgraven opened 7 years ago

tolgraven commented 7 years ago

I reckon a very nice feature would be the option to filter these out and instead flag the preceding line, showing the number of repeats on the right hand side next to the scrollbar. It's a very nice feature in syslogd, but especially when it's just a 1-2 repeat it doesn't exactly save loads of space and actually makes things unclearer in a way. If lnav could handle this it'd save even more space, AND be more noticeable when it happens since the line itself would have a clear flag.

What do you reckon? My own skills are not anywhere close to being able to wrap my head around this kind of codebase and trying to implement it, sorry :(

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/40042711-suggestion-fancy-handling-of-syslog-last-message-repeated-x-times?utm_campaign=plugin&utm_content=tracker%2F449456&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F449456&utm_medium=issues&utm_source=github).
tstack commented 7 years ago

To me, this seems a little too specific. It's possible to ':filter-out' these lines, but you would lose the number of repeats and the date range. I'm wondering if that is a feature to implement, when filtering is turned on, add a highlight to show that there are lines filtered out, how many, and over what time range. Not sure how to display that without cluttering things too much, though.