lnav/docs/source/intro.rst

54 lines
1.6 KiB
ReStructuredText
Raw Normal View History

2013-07-26 15:23:45 +00:00
Introduction
============
2013-08-26 14:20:01 +00:00
The Log File Navigator, **lnav**, is an enhanced log file viewer that
2013-07-26 15:23:45 +00:00
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.
2013-08-27 15:38:28 +00:00
Dependencies
------------
When compiling from source, the following dependencies are required:
* `NCurses <http://www.gnu.org/s/ncurses/>`_
* `PCRE <http://www.pcre.org>`_ -- Versions greater than 8.20 give better
performance since the PCRE JIT will be leveraged.
* `SQLite <http://www.sqlite.org>`_
* `ZLib <http://wwww.zlib.net>`_
* `Bzip2 <http://www.bzip.org>`_
* `Readline <http://www.gnu.org/s/readline>`_
2013-07-26 15:23:45 +00:00
Installation
------------
Check the `downloads page <http://lnav.org/downloads>`_ to see if there are
packages for your operating system. Compiling from source is just a matter of
doing::
$ ./configure
$ make
$ sudo make install
Viewing Logs
------------
2013-08-26 14:20:01 +00:00
The arguments to **lnav** are the log files or directories to be viewed.
2013-07-26 15:23:45 +00:00
For example, to view all of the CUPS logs on your system::
$ lnav /var/log/cups
The formats of the logs are determined automatically and indexed on-the-fly.
See :ref:`log-formats` for a listing of the predefined formats and how to
define your own.
2013-08-26 14:20:01 +00:00
If no arguments are given, **lnav** will try to open the syslog file on your
system::
2013-07-26 15:23:45 +00:00
$ lnav