LinuxCommandLibrary

tspin

Log file syntax highlighter and viewer

TLDR

View log file

$ tspin [logfile.log]
copy
Tail and highlight
$ tspin -f [logfile.log]
copy
Read from stdin
$ cat [log] | tspin
copy
No pager
$ tspin --no-pager [logfile.log]
copy

SYNOPSIS

tspin [-f] [--no-pager] [options] [file]

DESCRIPTION

tspin is a log file viewer that automatically applies syntax highlighting to make logs more readable. It detects common log formats and colorizes elements like timestamps, log levels, IP addresses, URLs, and JSON structures without requiring manual configuration.
Follow mode (-f) monitors log files in real time, highlighting new entries as they appear, similar to tail -f but with color. The tool can also read from standard input via pipes, integrating into existing logging pipelines.
A built-in pager allows scrolling through log files interactively. Custom highlighting rules can be defined through a configuration file for non-standard log formats.

PARAMETERS

-f

Follow mode.
--no-pager
Disable pager.
--config FILE
Config file.
--help
Show help.

CAVEATS

Rust implementation. Config for custom formats. Terminal colors needed.

HISTORY

tspin was created as a log file highlighter to make logs more readable with automatic format detection.

SEE ALSO

less(1), lnav(1), tail(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community