Le mercredi 21 mai 2008 à 07:05 +1000, Steve Morris a écrit :
> Colin Guthrie wrote:
> > Steve Morris wrote:
> >> I wasn't aware that these messages were logged to this file, which
> >> also raises another question I have been pondering. Why do we have so
> >> many log files, why do we not use just syslog?
> >
> > Erm, this *is* going through syslog....
> >
> > The syslog configuration (/etc/syslog.conf) determins how the various
> > messages are split out into separate files for convenience. I sure as
> > hell wouldn't want all my mail+firewall messages going into one big
> > file... Separate is good.
> Except for forensic investigation, unless you know exactly which of the
> various files contains a specific message.
then you can either use grep to search the proper file ( grep -r ), or
cat | sort to get file in a file.
you can also modify syslog to log everything in one file :
*.* /var/log/everything
--
Michael scherer