Hi there,
I'am using newsyslog to rotate logs on my freebsd server.
There are some problem and I don't know why is that.
Here is the content of newsyslog.conf
1. /var/log/named.conf is not rotated at all
I am logging with bind in the following way (from named.conf)
2. The log file for postfix is /var/log/maillog
It is not rotated correctly. maillog becomes maillog.0 and postfix continues to write in maillog.0.
The message in maillog is:
Feb 27 18:55:00 softexp newsyslog[18308]: logfile turned over due to size>3000K
So in my opinion it as a problem with postfix restart. The inode number remains the same so it continues to write in the same file witch has now another name.
Any Idea how can I solve it?
Thanks
I'am using newsyslog to rotate logs on my freebsd server.
There are some problem and I don't know why is that.
Here is the content of newsyslog.conf
Code:
# logfilename [owner] mode count size when flags [/pid_file] [sig_num]
/var/log/auth.log 600 10 1000 * C
/var/log/console.log 600 5 1000 * C
/var/log/cron 600 5 1000 * C
/var/log/debug.log 600 7 1000 * C
/var/log/maillog 600 10 3000 * C
/var/log/messages 600 10 1000 * C
/var/log/monthly.log 600 10 * $M1D0 N
/var/log/pflog 600 5 1000 * B /var/run/pflogd.pid
/var/log/weekly.log 600 5 1 $W6D0 N
/var/log/wtmp 600 5 * @01T05 B
/var/log/xferlog 600 10 1000 * C
/var/log/apache/* 600 10 1000 * GCB /var/run/httpd.pid 30
/var/log/dovecot* 600 10 1000 * GCB /var/run/dovecot/master.pid
/var/log/named.log 600 10 1000 * GCB /var/run/syslog.pid
/var/log/mysqld.log 600 10 1000 * GBC /var/db/mysql/softexp.pid
/var/log/clamav/clamd.log 600 10 500 * GBC /var/run/clamav/clamd.pid
/var/log/clamav/freshclam.log 600 10 500 * GBC /var/run/clamav/freshclam.pid
1. /var/log/named.conf is not rotated at all
I am logging with bind in the following way (from named.conf)
Code:
logging {
channel my_syslog {
syslog local1;
severity info;
};
category queries { my_syslog; };
category default { my_syslog; };
};
2. The log file for postfix is /var/log/maillog
It is not rotated correctly. maillog becomes maillog.0 and postfix continues to write in maillog.0.
The message in maillog is:
Feb 27 18:55:00 softexp newsyslog[18308]: logfile turned over due to size>3000K
So in my opinion it as a problem with postfix restart. The inode number remains the same so it continues to write in the same file witch has now another name.
Any Idea how can I solve it?
Thanks