Re: syncing logs
Tony Heal wrote:
Does anyone have a way to synchronize logs, such as determine what
happened in apache at (or around) the same time that the syslog has an
entry. Since most logs have a date/time stamp per entry I would think
there was something around that could do this, but I can not find it.
If the logs have the same format date/time stamp at the start of each
line, you can do something like
cat log1 log2 | sort | less
I'm not sure what you can do if the log formats differ.
If you're troubleshooting an ongoing issue, you can do:
tail -f log1 log2 (log3 etc.)
which will show the events from all specified logs as they happen.
Reply to: