FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 11-11-2008, 10:47 PM
"Sam Kuper"
 
Default Syslog not rotating /var/log/messages

Dear all,

I've just noticed that despite syslog being set to rotate /var/log/messages weekly, my var/log/messages file contains entries over a week old, and moreover there are no var/log/messages.0 or var/log/messages.1.gz, etc.

How do I know that syslog is set to rotate /var/log/messages weekly? Well, 'syslogd-listfiles --weekly' returns, among other things, the line, '/var/log/messages'.

Is this normal behaviour for Ubuntu?
My system: Ubuntu 8.04.1 server LTS on a Pentium 4 with 512MB RAM.
Regards,
Sam
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-14-2008, 03:19 PM
"Brian McKee"
 
Default Syslog not rotating /var/log/messages

On Tue, Nov 11, 2008 at 6:47 PM, Sam Kuper <sam@samkuper.com> wrote:
> Dear all,
> I've just noticed that despite syslog being set to rotate /var/log/messages
> weekly, my var/log/messages file contains entries over a week old, and
> moreover there are no var/log/messages.0 or var/log/messages.1.gz, etc.
> How do I know that syslog is set to rotate /var/log/messages weekly? Well,
> 'syslogd-listfiles --weekly' returns, among other things, the line,
> '/var/log/messages'.
> Is this normal behaviour for Ubuntu?
> My system: Ubuntu 8.04.1 server LTS on a Pentium 4 with 512MB RAM.
> Regards,
> Sam

Nope - not normal behaviour - witness
-rw-r----- 1 syslog adm 221520 2008-11-14 11:13 messages
-rw-r----- 1 syslog adm 348605 2008-11-12 07:56 messages.0
-rw-r----- 1 syslog adm 60766 2008-11-05 10:03 messages.1.gz
-rw-r----- 1 syslog adm 46182 2008-10-28 08:41 messages.2.gz
-rw-r----- 1 syslog adm 32060 2008-10-21 08:03 messages.3.gz

Brian

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-14-2008, 04:52 PM
Derek Broughton
 
Default Syslog not rotating /var/log/messages

Brian McKee wrote:

> On Tue, Nov 11, 2008 at 6:47 PM, Sam Kuper <sam@samkuper.com> wrote:
>> Dear all,
>> I've just noticed that despite syslog being set to rotate
>> /var/log/messages weekly, my var/log/messages file contains entries
>> over a week old, and moreover there are no var/log/messages.0 or
>> var/log/messages.1.gz, etc. How do I know that syslog is set to
>> rotate /var/log/messages weekly? Well, 'syslogd-listfiles --weekly'
>> returns, among other things, the line, '/var/log/messages'.
>> Is this normal behaviour for Ubuntu?
>> My system: Ubuntu 8.04.1 server LTS on a Pentium 4 with 512MB RAM.
>
> Nope - not normal behaviour - witness
> -rw-r----- 1 syslog adm 221520 2008-11-14 11:13 messages
> -rw-r----- 1 syslog adm 348605 2008-11-12 07:56 messages.0
> -rw-r----- 1 syslog adm 60766 2008-11-05 10:03 messages.1.gz
> -rw-r----- 1 syslog adm 46182 2008-10-28 08:41 messages.2.gz
> -rw-r----- 1 syslog adm 32060 2008-10-21 08:03 messages.3.gz

Two possiblilities come to mind: you don't have logrotate installed (OK,
I expect you checked that), or the system isn't up all the time -
especially when logrotate is scheduled to run - and you don't have
anacron either installed or properly working.
--
derek


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 03:59 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org