GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LNAV(1) FreeBSD General Commands Manual LNAV(1)

lnav - ncurses-based log file viewer

lnav [-hVsar] [logfile1 logfile2 ...]

The log file navigator, lnav, is an enhanced log file viewer that takes advantage of any semantic information that can be gleaned from the files being viewed, such as timestamps and log levels. Using this extra semantic information, lnav can do things like interleaving messages from different files, generate histograms of messages over time, and providing hotkeys for navigating through the file. It is hoped that these features will allow the user to quickly and efficiently zero in on problems.

?
View/leave the online help text.
q
Quit the program.

-h
Print help and exit
-H
Display the internal help text.
-I path
Add the given configuration directory to the search path.
-i
Install the given format files in the $HOME/.lnav/formats/installed directory and exit.
-C
Check the configuration and exit. The log format files will be loaded and checked. Any files given on the command-line will be loaded checked to make sure they match a log format.
-d file
Write debug messages to the given file.
-V
Print version information.
-a
Load all of the most recent log file types.
-r
Recursively load files from the given directories.
-R
Load older rotated log files as well.
-t
Prepend timestamps to the lines of data being read in on the standard input.
-w file
Write the contents of the standard input to this file.

logfile1
The log files or directories to view. If a directory is given, all of the files in the directory will be loaded.

To load and follow the syslog file:

    lnav

To load all of the files in /var/log:

    lnav /var/log

To watch the output of make with timestamps prepended:

    make 2>&1 | lnav -t

This manual page was written by Salvatore Bonaccorso <carnil@debian.org> for the Debian system (but may be used by others).
August 2013

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.