Mailinglist Archive: opensuse (3337 mails)

< Previous Next >
Logrotate problems
  • From: "Ryan McCain" <Ryan.McCain@xxxxxxxxxxxxxxx>
  • Date: Tue, 04 Apr 2006 16:30:55 -0500
  • Message-id: <s4329f4b.020@smtp1>
I need to rotate the normal logs in var as well as logs in
/var/log/syslogs/ , however, logrotate doesnt seem to be working on the
/var/log/syslogs directory. I'm assuming its a syntax error of some
kind

Below is my logrotate.conf:

--

# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 2

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

# uncomment this if you want your log files compressed
compress

# uncomment these to switch compression to bzip2
#compresscmd /usr/bin/bzip2
#uncompresscmd /usr/bin/bunzip2

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


/var/log/syslogs/* {
daily
create
rotate 2
compress
compresscmd /usr/bin/gzip
postrotate
killall -1 syslog-ng
mv *.gz archive/
endscript


}

# no packages own wtmp -- we'll rotate them here
#/var/log/wtmp {
# monthly
# create 0664 root utmp
# rotate 1
"/etc/logrotate.conf" 43L, 763C


--------

Here is the contents of my /var/log/syslogs/ directory:

serverA:/var/log/syslogs # ls
. 10.116.6.107.1.1
172.20.15.14.1.1.1.1.1.1.1.1 172.20.15.22.1.1.1.1.1.1.1
.. 10.116.6.107.1.1.1 172.20.15.150
172.20.15.22.1.1.1.1.1.1.1.1
10.116.6.106 10.116.6.107.1.1.1.1 172.20.15.150.1

10.116.6.106.1 10.116.6.107.1.1.1.1.1
172.20.15.150.1.1
10.116.6.106.1.1 172.20.15.14
172.20.15.150.1.1.1
10.116.6.106.1.1.1 172.20.15.14.1 172.20.15.22

10.116.6.106.1.1.1.1 172.20.15.14.1.1 172.20.15.22.1

10.116.6.106.1.1.1.1.1 172.20.15.14.1.1.1 172.20.15.22.1.1

10.116.6.106.1.1.1.1.1.1 172.20.15.14.1.1.1.1
172.20.15.22.1.1.1
10.116.6.106.1.1.1.1.1.1.1 172.20.15.14.1.1.1.1.1
172.20.15.22.1.1.1.1
10.116.6.107 172.20.15.14.1.1.1.1.1.1
172.20.15.22.1.1.1.1.1
10.116.6.107.1 172.20.15.14.1.1.1.1.1.1.1
172.20.15.22.1.1.1.1.1.1
serverA:/var/log/syslogs #

---

as you can see the logs arent being rotated or compressed in this
directory.

THANKS!

Ryan
18,1
25%

< Previous Next >
Follow Ups