kevincobain2000 / gol

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gol

Logs Viewer

View realtime logs in browser
Advanced regex search
Low Memory 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: Works with multiple logs file, with massive size support.

Remote: View remote logs over ssh in browser.

Pipe: Supports piped inputs.

Supports Plain text, piped inputs, ansii outputs, tar and gz compressed.

Intelligent Smartly judges log level.

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 *log & ./*/*log
gol
# run in current directory for pattern
gol "storage/*log" "access/*log"

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"

Full Options

gol -h

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.

About

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

License:MIT License


Languages

Language:Go 66.1%Language:Astro 31.0%Language:Shell 2.3%Language:JavaScript 0.6%