Logrotate appends extra numbers to logfiles
- From: jplee3@xxxxxxxxx
- Date: 27 Jul 2006 15:38:26 -0700
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
.
- Follow-Ups:
- Re: Logrotate appends extra numbers to logfiles
- From: Unruh
- Re: Logrotate appends extra numbers to logfiles
- From: jplee3
- Re: Logrotate appends extra numbers to logfiles
- Prev by Date: Re: Linux RH on Asus P5AD2 3.0 Intel - Ethernet not Detecting
- Next by Date: Re: Logrotate appends extra numbers to logfiles
- Previous by thread: Linux RH on Asus P5AD2 3.0 Intel - Ethernet not Detecting
- Next by thread: Re: Logrotate appends extra numbers to logfiles
- Index(es):
Relevant Pages
|
|