How to improve the viewing of log files?

4

I'm trying to analyze some log files generated in Linux and I've noticed that it's very annoying to understand where a line is starting / ending.

I would like to know if there is any kind of command or tools for better visualization of logs.

Example of a boring log generated by Mysql, seen from the command line:

Does anyone know how to report some tool for better visualization / monitoring of logs?

    
asked by anonymous 20.06.2017 / 15:40

1 answer

2

Actually analyzing logs is a very boring task, but depending on the context you can use some tools such as pipe ( | ) followed by grep , for example, let's say you want to "inspect" syslog for events generated by the kdeconnect application, then it would go into the logs directory and:

$ tail -n 30 syslog | grep kdeconnect

Jun 20 16:23:22 sidon-pc-linux org.kde.kdeconnect[1986]: kdeconnect.plugin.battery: Deleting stale BatteryDbusInterface for "Asus ZenFone 5"
Jun 20 16:23:22 sidon-pc-linux org.kde.kdeconnect[1986]: kdeconnect.plugin.sftp: add to dolphin
....

Multitail:

If you like something more oriented towards GUI, you can use multital. See screenshots .

Glogg:

Another good option (for ubuntu users, already in the repositories), is glogg, see the screens.

    
20.06.2017 / 21:37