Logrotate appends extra numbers to logfiles



Hi all,
I was wondering if anyone could explain why logrotate is appending
extra numbers to logfiles on a system I've been accessing. I don't have
admin access to change anything but I really wanted to get it figured
out so I can let the guy administering the system make the necessary
changes. The sysadmin who set this up is a Windows admin, and has never
used Linux/Unix before.

Anyway, the logfiles look something like this (log.1 -> log.1.1 ->
log.1.1.1 -> log.1.1.1.1 and so on and so forth).

I'm able to look at the logrotate.conf but I can't edit it:

# see "man logrotate" for details
# rotate log files weekly
# weekly - rem QB

# rotate log files daily - added by QB
daily

# keep 4 weeks worth of backlogs
rotate 365

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# RPM packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp -- we'll rotate them here
#/var/log/wtmp {
# monthly
# create 0664 root utmp
# rotate 1
#}

# system-specific logs may be also be configured here.
/var/log/nt/arc {
daily
create 0755 root utmp
rotate 1
}


I have a hunch that the last section is off. In the first place,
/var/log/nt/arc is an actual directory meant to hold the older
'archived' logfiles. I think the sysadmin just tried copying the wtmp
section over and didn't realize that wtmp is an actual file.
Now, I think he just wanted to have the /var/log/nt (containing all the
actual logfiles) to rotate without actually rotating anything in
/var/log; as well as rotating the older logfiles in /var/log/nt to
/var/log/nt/arc.
But it doesn't seem like he configured it correctly.

In this scenario, how should I recommend that he set things up? I
really wish they'd just give me root access to the darned thing so I
don't have to be the middleman.

Thanks guys

.



Relevant Pages

  • Re: Logrotate appends extra numbers to logfiles
    ... extra numbers to logfiles on a system I've been accessing. ... The sysadmin who set this up is a Windows admin, ... # rotate log files daily - added by QB ...
    (comp.os.linux.setup)
  • Re: Help! clear logfiles manually question
    ... The drive with the log files filled up so the stores dismounted due to the ... backup software not clearing the logfiles which is another issue. ...
    (microsoft.public.exchange.admin)
  • Re: Help! clear logfiles manually question
    ... The drive with the log files filled up so the stores dismounted due to the ... backup software not clearing the logfiles which is another issue. ...
    (microsoft.public.exchange.admin)
  • Re: installation date and time
    ... >>>Part of the standard cron settings, usually daily or weekly, although the ... # rotate log files weekly ... # create new log files after rotating old ones ...
    (comp.os.linux.misc)
  • Re: Long transaction aborted in Informix IDS 7.31
    ... If it has less than LOGFILES, you should add as many log files as you need. ... Anyway, if your task will run just once, you can cut your load file un several pieces to solve it with no DBA work. ... PHYSBUFF 80 # Physical log buffer size ...
    (comp.databases.informix)