[CentOS] how to get data from syslog for a specific date range?

Markus Falb markus.falb at fasel.at
Wed Jul 13 15:24:38 UTC 2011


On 7.7.2011 15:45, Rudi Ahlers wrote:

> something wrong with the logs on this server since it only has this
> month's data in /var/log/messages and /var/log/message.1 - 4 doesn't
> have much either. I'll have to investigate this first to see what's
> up.

Nothings wrong, plain syslog dont log year. For this you have to use
alternative syslog daemons like syslog-ng or rsyslog (not sure about the
latter one). But you can always rotate with a filename scheme that has
the year in it.

-- Kind Regards, Markus Falb

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20110713/acfc9ec3/attachment.sig>


More information about the CentOS mailing list