1LNAV(1)                     General Commands Manual                    LNAV(1)
2
3
4

NAME

6       lnav - ncurses-based log file viewer
7

SYNOPSIS

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

DESCRIPTION

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

KEY BINDINGS

22       ?      View/leave the online help text.
23
24       q      Quit the program.
25

OPTIONS

27       -h     Print help and exit
28
29       -H     Display the internal help text.
30
31       -I path
32              Add the given configuration directory to the search path.
33
34       -i     Install  the  given  format  files   in   the   $HOME/.lnav/for‐
35              mats/installed directory and exit.
36
37       -C     Check  the configuration and exit.  The log format files will be
38              loaded and checked.  Any files given on the command-line will be
39              loaded checked to make sure they match a log format.
40
41       -d file
42              Write debug messages to the given file.
43
44       -V     Print version information.
45
46       -a     Load all of the most recent log file types.
47
48       -r     Recursively load files from the given directories.
49
50       -R     Load older rotated log files as well.
51
52       -t     Prepend  timestamps  to  the  lines of data being read in on the
53              standard input.
54
55       -w file
56              Write the contents of the standard input to this file.
57
58   Optional arguments:
59       logfile1
60              The log files or directories to view.  If a directory is  given,
61              all of the files in the directory will be loaded.
62

EXAMPLES

64       To load and follow the syslog file:
65
66           lnav
67
68       To load all of the files in /var/log:
69
70           lnav /var/log
71
72       To watch the output of make with timestamps prepended:
73
74           make 2>&1 | lnav -t
75

AUTHOR

77       This    manual    page    was    written    by   Salvatore   Bonaccorso
78       <carnil@debian.org> for the Debian system (but may be used by others).
79
80
81
82                                  August 2013                          LNAV(1)
Impressum