last-minute
Tail last minute of a log file. Usage:
$ tail -F main.log | lastmin --seconds 5
Every time tail feeds another line, terminal screen is cleared, and most recent
n seconds (or minutes) of logs are printed.

Usage
Usage: lastmin --seconds=INT --minutes=INT [flags]
Flags:
-h, --help Show context-sensitive help.
-s, --seconds=INT
-m, --minutes=INT
-t, --show-tick Show current time.
-r, --refresh-seconds=2 How often output is refreshed.
Install
go install github.com/denarced/last-minute@latest