How to improve log file visualization?

Asked

Viewed 160 times

4

I am trying to analyze some logs files generated on Linux and have noticed that it is very boring to understand where a line is starting/ending.

I wonder if there is some kind of command or tools for better viewing logs.

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

Horrível ver esse log no linux

Someone knows to report some tool for better visualization/ monitoring of logs?

1 answer

2

Actually parsing logs is a very boring task, but depending on the context Voce can use some tools such as pipe (|) followed by grep, for example, say you want to "inspect" syslog for events generated by the kdeconnect application, then go to the log 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 GUI oriented, you can use multital. See screenshots.

Multital

Glogg:

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

glogg screens

Browser other questions tagged

You are not signed in. Login or sign up in order to post.