logtap

The simplest way to access log files remotely. No database. REST API, CLI with colors, regex filtering, and real-time streaming.

Python REST API WebSocket Docker
pip install logtap

Features

🌐

REST API

Query logs remotely without SSH. Simple HTTP endpoints for all operations.

🎨

Colored CLI

Beautiful terminal output with syntax highlighting and formatting.

🔍

Regex Filtering

Powerful pattern matching for sophisticated log searches.

📡

WebSocket Streaming

Real-time log tailing like tail -f, but over the network.

🔒

API Key Auth

Optional authentication for production environments.

🐳

Docker Ready

Containerized deployment with read-only mounts for security.

Usage

Start the server
# Start logtap server on your log machine
logtap serve --port 8080

# With API key authentication
logtap serve --api-key your-secret-key
Query logs
# Search for errors
logtap query --server myserver:8080 --file app.log --term "ERROR"

# Use regex patterns
logtap query --regex "failed.*connection" --limit 50

# Real-time streaming
logtap tail --server myserver:8080 --file app.log --follow

API Endpoints

GET /logs?file=app.log&term=error&limit=100

Query log entries with filtering and pagination

GET /files

List all available log files

GET /health

Health check endpoint