{"repo":"tstack/lnav","free":true,"listed":false,"github":"https://github.com/tstack/lnav","clone":"git clone https://github.com/tstack/lnav.git","description":"Log file navigator","language":"C++","stars":10557,"topics":["log-analysis","log-monitor","command-line-tool","less","logging","more","pager","tail","terminal","terminal-pager"],"license":"BSD-2-Clause","category":"cli-tools","readme_excerpt":"This is the source repository for lnav , visit https://lnav.org for a high level overview. LNAV -- The Logfile Navigator The Logfile Navigator is a log file viewer for the terminal. Given a set of files/directories, lnav will: - decompress as needed; - detect their format; - merge the files by time into a single view; - tail the files, follow renames, find new files in directories; - build an index of errors and warnings; - pretty-print JSON-lines. Then, in the lnav TUI, you can: - jump quickly to the previous/next error (press e / E ); - search using regular expressions (press / ); - highlight text with a regular expression ( :highlight command); - filter messages using regular expressions or SQLite expressions; - pretty-print structured text (press P ); - view a histogram of messages over time (press i ); - analyze messages using SQLite (press ; ) Screenshot The following screenshot shows a mix of syslog and web access log files. Failed requests are shown in red. Identifiers, like IP address and PIDs are semantically highlighted. Why not just use tail / grep / less ? The standard Unix utilities are great for processing raw text lines, however, they do not understand log messages. Tail can watch multiple files at a time, but it won't display messages in order by time and you can't scroll backwards. Grep will only find matching lines, but won't return a full multi-line log message. Less can only display a single file at a time. Also, none of these basic tools handle compresse","default_branch":null,"files":null,"tree":[],"storefront":"/r/tstack","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tstack/lnav/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}