Giter VIP home page Giter VIP logo

log-viewer's Introduction

LogViewer

LogViewer is a Web application for monitoring server logs in real-time in the browser.

The tool provides powerful UI with highlighting, filtering, search, folding inconsiderable text. Merging several logs into one view works as well.

LogViewer can show huge log files without significant resource consumption because it reads only the part of the file that a user is watching. No indexing.

Screenshot

Features

  1. Highlighting fields, lines, parent brackets. Highlighting makes the log much more readable.
  2. Event filtering by a level, logger, date, thread, etc... Filtering by a custom condition written on JavaScript is available as well. more details
  3. Merging events from several log files and showing its as one log. If log files are located on different machines, all machines must have run LogViewer.
  4. Folding secondary information like unmeaning parts of exception stacktraces, full name of logger.
  5. Detecting the format of the log file.
  6. A permanent link to a log position. A user can copy a link to the current position and send it to another user.

Demo video

Quick start

  • Download LogViewer from Github releases and unpack it to any folder. Make sure the machine has installed Java 8 or later.
  • Run log-viewer-1.0.4/logviewer.sh
  • Open http://localhost:8111. There will be a file chooser to select a log from the file system.

User can open a log file using the file chooser on http://localhost:8111 or by a direct link: http://localhost:8111/log?log=$pathToLogFile. For opening several log files in one view, pass several "log" query parameters, for example: http://localhost:8111/log?log=$pathToLogFile1&log=$pathToLogFile2&log=$pathToLogFile3
Note: all log files must have full timestamp, otherwise LogViewer cannot merge them.

Also, LogViewer can be embedded into another java web application, if you don't want to run it as a standalone process. See embedding to Spring Boot application or embedding to java web application

Configuration

Configuration is located in log-viewer-1.0.4/config.conf, the file has HOCON format.

The most important configuration is a list of available files. Also, you can specify the log format if the automatic format detection works incorrectly; shortcuts for files/file sets, etc...

More details about configuration

Performance

The idea to filter logs without indexing sounds questionable. If the filter settings filter out all elements, the system has to scan the entire file to make sure that no visible events exist. Also, each search can perform a full scan of the log. Actually, the full scan is not a big problem, the parser works fast enough. Parsing 1Gb file takes 3,5 sec on my machine. It is viable.
Setting a date range filter can speed up the tool a lot because only events from the specified date range will be considered.

log-viewer's People

Contributors

dependabot[bot] avatar sevdokimov avatar zuevkirill95 avatar

Watchers

 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.