tspin
A log file highlighter based on the less pager and basically behaves like any pager. tldr-pages
On several platforms
Several platforms
View a log file using the default pager (less)
tspin path/to/file.logIdentifyRead from another command and print to stdout
command | tspinIdentifyRead from a file and print to stdout without paging
tspin path/to/file.log --printIdentifyFollow a file (mimics tail -f) and highlight new entries
tspin --follow path/to/file.logIdentifyHighlight specific groups only (possible values: numbers, urls, pointers, dates, paths, quotes, key-value-pairs, uuids, ip-addresses, processes, json)
tspin --enable urls,ip-addresses,... path/to/file.logIdentifyUse a custom pager (the [FILE] string is a required literal placeholder)
tspin --pager "bat -p [FILE]" path/to/file.logIdentifyHighlight custom strings with custom colors
tspin --highlight red:ERROR,WARNING,... path/to/file.logIdentifyRun the provided command and view the output in less
tspin --exec='command'Identify