Nov 10, 2018

How to output the last 10 lines from the last log file

to output the last 10 lines from the last log file:
$ tail $(ls -1tr /path/of/your/logs/server.*.log | tail -n 1)