hl
Fast log viewer and processor for JSON and logfmt
TLDR
SYNOPSIS
hl [-l level] [-f filter] [--since time] [--until time] [-P] [-L] [file...]
DESCRIPTION
hl is a high-performance log viewer and processor that converts JSON logs and logfmt logs into clear human-readable format. It automatically detects log formats and renders them with color-coded output for quick analysis.
The tool supports field-based filtering, log level filtering, and timestamp range filtering. It automatically integrates with a pager (defaulting to less) and supports theme customization through configuration files.
PARAMETERS
-l LEVEL
Filter by log level (debug, info, warn, error)-f KEY=VALUE
Filter by field value--since TIME
Show logs after this timestamp--until TIME
Show logs before this timestamp-P
Disable pager (streaming mode)-L
Show timestamps in local timezone-Z ZONE
Show timestamps in specified timezone--allow-prefix
Process logs with non-JSON prefixes
CAVEATS
Designed for structured log formats (JSON, logfmt); plain text logs are passed through as-is. Very large log files benefit from the tool's streaming mode to avoid buffering the entire file in memory.
HISTORY
hl was created by pamburus and is written in Rust. It was designed as a blazing-fast alternative to tools like jq for log analysis, with built-in understanding of common log formats and levels.

