Giter Club home page Giter Club logo

kevincobain2000 / gol Goto Github PK

View Code? Open in Web Editor NEW
52.0 3.0 1.0 198 KB

All in One - Dependency free (docker, local, remote) Log Viewer in Browser. Written in GO with God Speed.

Home Page: https://medium.com/web-developer/logs-viewer-view-real-time-logs-in-your-browser-easily-d532f1000a2b

License: MIT License

JavaScript 0.42% Astro 33.57% Shell 1.80% Go 64.20%
browser-logging log-management log-viewer log-visualization log-visualizer logs docker-logs remote-log golang-log golang-logging

gol's Introduction

gol

Logs Viewer

View realtime logs in your fav browser
Local, Docker, Remote, Pipes
Advanced regex search
Low Mem Footprint
Single binary

Quick Setup: One command to install and run.

Hassle Free: Doesn't require elastic search or other shebang.

Platform: Supports (arm64, arch64, Mac, Mac M1, Ubuntu and Windows).

Flexible: View docker logs, remote logs over ssh, files on disk and piped inputs in browser.

Intelligent Smartly judges log level, and dates.

Search Fast search with regex.

Realtime Tail logs in real time in browser.

Watch Changes Supports log rotation and watch for new log files.

View in Browser

gol

Reports from coveritup

gol

npm-install-time npm-build-time go-build-time go-lint-errors

go-test-run-time coverage go-binary-size go-mod-dependencies

npm-install-time npm-build-time go-build-time go-lint-errors go-test-run-time coverage go-binary-size go-mod-dependencies

Install using curl

Use this method if go is not installed on your server

curl -sL https://raw.githubusercontent.com/kevincobain2000/gol/master/install.sh | sh

Examples

# run in current directory for pattern
gol "*log" "access/*log.tar.gz"

Advanced Examples

All patterns work in combination with each other.

# search using pipe and file patterns
demsg | gol -f="/var/log/*.log"

# over ssh
# port optional (default 22), password optional (default ''), private_key optional (default $HOME/.ssh/id_rsa)
gol -s="user@host[:port] [password=/path/to/password] [private_key=/path/to/key] /app/*logs"

# Docker all container logs
gol -d=""

# Docker specific container logs
gol -d="container-id"

# Docker specific path on a container
gol -d="container-id /app/logs.log"

# All patterns combined
gol -d="container-id" \
    -d="container-id /app/logs.log" \
    -s="user@host[:port] [password=/path/to/password] [private_key=/path/to/key] /app/*logs" \
    -f="/var/log/*.log"

CHANGE LOG

  • v1.0.0 - Initial release.
  • v1.0.3 - Multiple file patterns, and pipe input support.
  • v1.0.4 - Support os.Args for quick view.
  • v1.0.5 - Support ssh logs.
  • v1.0.6 - UI shows grouped output.
  • v1.0.7 - Support docker logs.
  • v1.0.14 - Sleak UI changes and support dates.
  • v1.0.17 - Support both ignore and include patterns.
  • v1.0.21 - Better logging.
  • v1.0.22 - Support UA.
  • v1.0.24 - Dropdown on files.

Limitations

  • Docker Logs: Only supports logs from containers running on the same machine.

gol's People

Contributors

kevincobain2000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

alexjdevil

gol's Issues

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.