Code Monkey home page Code Monkey logo

lnav-formats's Introduction

lnav overview

http://lnav.org is a powerful log file reader, designed to take multiple log files and order them by date. It understands log file formats using regular expresions and can highlight sections of line, find errors and warnings, and more.

Installation

lnav can be installed via homebrew (formula)

brew install lnav

For alternative options refer to the docs.

Log format description files for lnav

This repository is a fork of lnav-formats with the following additional lnav formats useful for Splash:

To install these lnav formats run the following command:

lnav -i splash_structured_log.json monolog.json

lnav version

Some of these formats use features that are only available in lnav version 0.8.0 or above. If you get warnings, try renaming the offending files to .json-unused to see if this fixes things.

Easy creation of formats

I now provide a new tool, make_format.pl, which takes a series of lines from stdin and turns them into sample lines in a new format. This can, for instance, be used by marking several significant lines in lnav and issuing the command:

:pipe-to perl path/to/make_format.pl -name example -output example_log.json

Using the -name or -n option sets the name in the format. This is lazy, so you'll need to edit it to suit yourself. If this option is not specified the format name is 'NEW' throughout.

Using the -output or -o option sets the destination for the new format. If this is not specified the result will be written to standard output.

lnav-formats's People

Contributors

paulway avatar omair-inam avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.