Write the contents of the standard input to this file. Prepend timestamps to the lines of data being read in on the standard input. Recursively load files from the given directories. Any files given on the command-line will be loaded checked to make sure they match a log format. The log format files will be loaded and checked. Update formats installed from git repositories. Install the given format files in the $HOME/.lnav/formats/installed directory and exit. Do not print the log messages after executing all of the commands. nĭo not open the default syslog file if no files are given. I pathĪdd the given configuration directory to the search path. f pathĮxecute the commands in the given file. (headless mode) -c cmdĮxecute a command after the files have been loaded. It is hoped that these features will allow the user to quickly and efficiently zero in on problems. 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. 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. Validate the format of log files against the configuration and report any errors: lnav -C path/to/log_directory.View logs of a specific remote host (SSH passwordless login required): lnav ssh : /var/log/syslog.log.View logs of a program, specifying log files, directories or URLs: lnav path/to/log_or_directory|url.Ncurses-based log file viewer Examples (TL DR)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |