How to view multiple log files as one file in unix/linux
Posted
by user42679
on Server Fault
See other posts from Server Fault
or by user42679
Published on 2010-05-10T10:04:50Z
Indexed on
2010/05/10
10:14 UTC
Read the original article
Hit count: 238
Hi,
I was wondering if there is a convenient way in linux/unix to read multiple log files as one.
More specifically, I would like to view a sequence of log files (app.log, app.log.1 app.log.2, etc) as one big file using normal unix tools (vi, less, etc). When the EOF is read the tool will automatically move to the beginning of the next file.
During my work I have to analyze uat/prod logs to investigate and solve problems. The fact that I need to traverse many log files disturbs my work and causes delays.
Any ideas?
© Server Fault or respective owner