For testing purpose, i’m searching Default string, See the below screenshot. First run lnav then hit / and type the string which you want to grep. You can search any given string which will be highlighting on screen. # lnav -r /var/log/Xorg.0.įirst run lnav then hit i to Switch to/from the histogram view.įirst run lnav then hit p to Toggle the display of the log parser results. To view older/compressed logs which will decompresses all the compressed log files (zip, gzip, bzip) on the fly, add -r option followed by lnav command. # lnav /var/log/dpkg.log /var/log/kern.log Most of the application used to open multiple windows or horizontal or vertical windows within the window to display more than one log but lnav doing in different way (It display multiple logs in the same window based on date combination). Alternatively top bar also showing the current log file name. The color bars on the left-hand side help to show which file a message belongs to. For example we are going to view /var/log/dpkg.log & /var/log/kern.log logs. To view multiple log files with lnav, add the log files path one by one with single space followed by lnav command. īy default lnav brings syslog file when you are running without any arguments. Make sure you have to download the latest one from developer github page. deb packages, so we can easily install without any issues. If the distribution doesn’t have the lnav package don’t worry, Developer offering the. For CentOS/RHEL we need to enable EPEL Repository. Most of the distribution (Debian, Ubuntu, Mint, Fedora, suse, openSUSE, Arch Linux, Manjaro, Mageia, etc.) has the lnav package by default, so we can easily install it from distribution official repository with help of package manager.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |