tail -n 100 myfile.log
gives my the last 100 lines of myfile.log.
Is there an existing tool that expects the first "column" of each line in a file as a timestamp and can give me the n last hours/days/...?
We can assume the lines in the file have ascending timestamps.
e.g.
tailtm -h 10 myfile.log
The tool should accept most common timestamp-formats of Linux logfiles.
journalctl -u abc.service --since=XXX
– mrc02_kr Nov 12 '19 at 21:11