Giter Site home page Giter Site logo

arpi-t / log-streaming Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 72 KB

View realtime file logs on web interface

License: MIT License

JavaScript 76.62% CSS 1.44% HTML 21.94%
nodejs tailf logs log-tail tail-files log-viewer server-side-events log-stream

log-streaming's Introduction

log-streaming

View real-time file logs on web interface using SSE.

Usage as command line tool

  • Install using npm install realtime-logger -g
  • Run rt_log from terminal
  • Access the UI at localhost:3000

How to run the project

  • Install node version manager (nvm)
  • Then Run following commands:
  1. nvm install

  2. nvm use

  3. npm install

  4. npm start

Configurations

  • Create a json file for configuration in following format:
[
    //    Full file path strings separated by comma
    //    Ex:
    //    "/Users/abcd/sample/access.log",
    //    "/Users/abcd/sample/README.md"
]
  • Export the full path of the above file under LOGVIEWER_PATH variable.
  • To monitor the file changes, add their paths in configuration file created earlier.
  • Open up the browser at http://localhost:3000 to check the UI.
  • To change the port export LOGVIEWER_PORT env with proper port number.

log-streaming's People

Contributors

arpi-t avatar

Stargazers

 avatar  avatar  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.