RE: logs
"Pettit, Paul" <[email protected]> Tue, 7 Jun 2005 08:43:25 -0500
| Newsgroups | gmane.linux.redhat.release.valhalla |
|---|---|
| Message-ID | <023801c56b66$e16f9670$7202a8c0@ccb2vpjza> |
-----Original Message-----
From: Harry Hambi
Hi all,=20
I'me trying to locate logs for the 27 & 28th of may on my linux box.When =
I
look I /var/log/messages I only see logs back to the 29th of may.Is there
some where that linux stores old logs?.am I correct in thinking that by
default logs are kept for 4 weeks.In my logrotate.conf file I have the
following =20
/var/log/wtmp {=20
monthly=20
rotate 1=20
}=20
Does this mean my logs are kept for 4weeks, if so where can I fing old lo=
gs,
what does rotate 1 mean?, any help much appreciated.
Rgds.=20
Harry.=20
--------------------------
Harry,
The above logrotate means that the 'wtmp' log file will be rotated and on=
ly
1 month (note the 'monthly' key) saved.
However your question regards the 'messages' log so this setting in
logrotate is irrelavent.
Look for a similar notation for '/var/log/messages', if there isn't any t=
hen
your log is not being rotated. If there is then refer to the settings und=
er
it to see what rules logrotate is using for that log.
Finally, if you 'ls -al /var/log' and see only the 'messages' file and no
'messages.1, messages.2' etc. then all your logs are in one file.
Hope that helps, good luck.
Paul Pettit
CTO and IS Manager
Consistent Computer Bargains Inc.
I've heard it said that the proof of lunacy is when you repeat the same
steps expecting different results. I say it's proof that you're a Micros=
oft
user. - comment by deshi777 on experts-exchange.com=20