-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/26/07 05:19, koffiejunkie wrote: > 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.
Perl/Python and a SMOP can convert the timestamps. > 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. - -- Ron Johnson, Jr. Jefferson LA USA Give a man a fish, and he eats for a day. Hit him with a fish, and he goes away for good! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGqII8S9HxQb37XmcRAkhlAJ4ll85IO0XLzydJDn6HPM+5PSpiPwCgzqEH 48Qn9VhAxYpRUjuo0BRc9Go= =HmfJ -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]