lnav 0.7.1

A command-line based tool for viewing and analyzing log files with the help of an enhanced log file viewer that takes advantage of any semantic information from the examined files.
  1 Screenshot
lnav (Logfile Navigator) is a free curses-based tool for viewing and analyzing log files.

Also, lnav, unlike other tools of its kind, takes advantage of any semantic information that can be gleaned from the log file, such as timestamps and log levels.

As such, lnav can do things like interleaving messages from different files, generate histograms of messages over time, and providing hotkeys for navigating through the file.

These features will hopefully allow you to quickly and efficiently zero-in on problems.

Main features:

  • Support for the following log file formats:
  • Syslog, Apache access log, strace, tcsh history, and generic log files with timestamps. The file format is automatically detected when the file is read in.
  • Histogram view:
  • Displays the number of log messages per bucket-of-time. Useful for getting an overview of what was happening over a long period of time.
  • Filters:
  • Display only lines that match or do not match a set of regular expressions. Useful for removing extraneous log lines that you are not interested in.
  • "Live" operation:
  • Searches are done as you type; new log lines are automatically loaded and searched as they are added; filters apply to lines as they are loaded; and, SQL queries are checked for correctness as you type.
  • Automatic tailing:
  • The log file view automatically scrolls down to follow new lines that are added to files. Simply scroll up to lock the view in place and then scroll down to the bottom to resume tailing.
  • Time-of-day ordering of lines:
  • The log lines from all the files are loaded and then sorted by time-of-day. Relieves you of having to manually line up log messages from different files.
  • Syntax highlighting:
  • Errors and warnings are colored in red and yellow, respectively. Highlights are also applied to: SQL keywords, XML tags, file and line numbers in Java backtraces, and quoted strings.
  • Navigation:
  • There are hotkeys for jumping to the next or previous error or warning and moving forward or backward by an amount of time.
  • Use SQL to query logs:
  • Each log file line is treated as a row in a database that can be queried using SQL. The columns that are available depend on logs file types being viewed.
  • Command and search history:
  • Your previously entered commands and searches are saved so you can access them between sessions.
  • Compressed files:
  • Compressed log files are automatically detected and uncompressed on the fly.

last updated on:
April 2nd, 2014, 11:39 GMT
file size:
1.2 MB
license type:
developed by:
Tim Stack
operating system(s):
Mac OS X 10.8 or later
binary format:
Intel only
Home \ System Utilities
Download Button

In a hurry? Add it to your Download Basket!

user rating



Rate it!
What's New in This Release:
  • Features:
  • Added an 'environ' SQL table that reflects lnav's environment variables. The table can be read and written to using SQL SELECT, INSERT, UPDATE, and DELETE statements. Setting variables can be a way to use SQL query results in lnav commands.
  • Added a 'jget' SQLite function that can extract fields from a JSON-encoded value.
  • Added log formats for the OpenAM identity provider.
read full changelog

Add your review!