hl is a high-performance log viewer and processor designed to convert JSON and logfmt logs into a clear, human-readable output. With features like automatic pager integration, log streaming mode, and advanced filtering options, it allows swift parsing and analysis of large log files, all with minimal overhead.
hl is a high-performance log viewer and processor designed for transforming JSON and logfmt logs into a clear, human-readable format. This tool is optimized for efficiency, enabling quick parsing and analysis of large log files while maintaining minimal resource overhead.
-P flag, allowing real-time log updates.-f option, with support for hierarchical keys.-l option for log levels.--since and --until options to filter logs by time, applying intuitive formats such as RFC-3339 or friendly shortcuts like today or -3h.-h option, along with automatic hiding of empty fields via the -e flag.-s flag, enabling rapid filtering without re-scanning through logs.-F flag, with options to preview recent messages.With its fast processing capabilities, hl outperforms other log processing tools on data sets of substantial sizes. For instance, processing a 2.3 GiB log file takes approximately 1.1 seconds. More details can be found in the performance comparison section within the README.
To concatenate and display all .log files in the current directory:
hl *.log
To monitor log changes in real-time:
tail -f example.log | hl -P
To filter messages where the component equals tsdb:
hl example.log --filter component=tsdb
To sort log messages from all files in chronological order:
hl -s *.log
With its comprehensive feature set, hl is a valuable tool for developers and system administrators seeking to enhance their log management and analysis processes.
No comments yet.
Sign in to be the first to comment.