Bug 485232 - Making it possible to combine repetitive errors (just a counter)
Summary: Making it possible to combine repetitive errors (just a counter)
Status: REPORTED
Alias: None
Product: KSystemLog
Classification: Applications
Component: general (show other bugs)
Version: 22.12.3
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Nicolas Ternisien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-08 12:23 UTC by myndstream
Modified: 2024-09-28 12:24 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description myndstream 2024-04-08 12:23:33 UTC
SUMMARY
Often logs are very hard to read or analyze and large in size because of many repetitive errors. It would be extremely useful to have a GUI tool that combines repetitive messages with just a counter.

For example, here https://unix.stackexchange.com/q/773986/233262 I had many "kded5: HistoryFile::add.write […]" errors cluttering the journalctl logs and this happens very often for many different log entries.

It also allows showing which error messages repeat very often which are often linked to current problems or are of a particular severity.

It wouldn't only combine repetitive log entries that are output directly in a row but also the same error messages within the specified time. One could for example toggle a button like "Combine repetitive messages" and show them at the top of the logviewer with a counter next to them sorted by number of occurrences where all messages that are shown in the current view are "compressed" like that. Another way could be to then show an option to set start and endtime for where logs should be combined and/or a button next to log-entries like "combine all messages identical to this".

STEPS TO REPRODUCE
1. On Debian12/KDE try to debug a problem by using journalctl that has lots of repetitive messages, sometimes thousands of the same messages in a row or within a relatively short timespan

OBSERVED RESULT
Each repetitive message is shown individually making the log very long which is only useful for seeing the timestamp or when investigating a timespan shorter than what is currently viewed where these log entries could be missing if they were shown at the top

EXPECTED RESULT
A way to combine repetitive identical messages. Maybe in the future it could also be possible to combine nearly identical messages and to complement this by temporarily hiding errors from various sources/types.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian 12
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION

This is a very useful underrated tool which has a lot of potential but needs some more work to become so useful to be really used a lot.
Comment 1 Cherkah 2024-07-14 09:46:00 UTC
+100
same "issue" on a kde archlinux distro.
 i must switch between 3 logs tools (ksystemlog,gnome journal, lnav)    in order to be efficient in the administration of system logs; while KDE continually releases applications for everything and nothing....

not to mention the inability of the application to adjust its font size to that of the system!!!!
Comment 2 Chao Feng 2024-09-28 12:24:10 UTC
In the settings, there is a remove duplicate message setting (slow on large files). Please check if it meet your needs.