A real-time log viewer web application built with Go, featuring WebSocket support for live updates and a modern web interface.
- Real-time log file monitoring
- Support for both
.log
and.leaks
files - Basic authentication for secure access
- Modern, responsive web interface
- Memory leak log highlighting
- Buffered WebSocket updates for better performance
The application can be configured using environment variables:
LOG_VIEWER_USERNAME
: Username for basic authentication (default: "admin")LOG_VIEWER_PASSWORD
: Password for basic authentication (default: "admin")
go run main.go
The application will start on http://localhost:8080
.
docker build -t logviewer .
docker run -p 8080:8080 \
-e LOG_VIEWER_USERNAME=your_username \
-e LOG_VIEWER_PASSWORD=your_password \
-v /path/to/logs:/tmp/log:ro \
logviewer
This project is licensed under the MIT License - see the LICENSE file for details.