hi leute, ich hoffe ich habe hier den richtigen thread....
es geht darum das ich heute in der logdatei /var/log/messages ne meldung hatte das logrotate nen prob verursacht und nach eingabe von
bekam ich folgende ausgabe mit erklärung des fehlers, welche mir aber nix sagen da ich einen solche fehler nicht finde, für mich sieht die sonf gut aus...
fehlerausgabe:
meine logrotate.conf:
über eine antwort sie viell. mein problem löst wäre ich dankbar
mfg physicus
es geht darum das ich heute in der logdatei /var/log/messages ne meldung hatte das logrotate nen prob verursacht und nach eingabe von
Code:
logrotate -v /etc/logrotate.conf
bekam ich folgende ausgabe mit erklärung des fehlers, welche mir aber nix sagen da ich einen solche fehler nicht finde, für mich sieht die sonf gut aus...
fehlerausgabe:
Code:
reading config file /etc/logrotate.conf
error: /etc/logrotate.conf:3 unexpected text
error: /etc/logrotate.conf:4 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:6 unexpected text
error: /etc/logrotate.conf:7 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:9 unexpected text
error: /etc/logrotate.conf:10 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:12 unexpected text
error: /etc/logrotate.conf:13 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:17 lines must begin with a keyword or a filename (possibly in double quotes)
including /etc/logrotate.d
reading config file apache2
reading config info for /var/log/apache2/access_log
reading config info for /var/log/apache2/error_log
reading config info for /var/log/apache2/suexec.log
reading config info for /var/log/apache2/ssl_request_log
reading config info for /var/log/apache2/ssl_engine_log
reading config file fetchmail
reading config info for /var/log/fetchmail
reading config file mysql
reading config info for /var/lib/mysql/mysqld.log
reading config file net-snmp
reading config info for /var/log/net-snmpd.log
reading config file privoxy
reading config info for /var/lib/privoxy/log/logfile
reading config info for /var/lib/privoxy/log/jarfile
reading config file radiusd
reading config info for /var/log/radius/radacct/*/detail
reading config info for /var/log/radius/radius.log
reading config info for /var/log/radius/radwatch.log
reading config info for /var/log/radius/radwtmp
reading config info for /var/log/radius/sqltrace.sql
reading config file rinetd
reading config info for /var/log/rinetd.log
reading config file rsync
reading config info for /var/log/rsyncd.log
reading config file syslog
reading config info for /var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall
reading config info for /var/log/mail /var/log/mail.info /var/log/mail.warn /var/log/mail.err
reading config file tomcat5
reading config info for /var/log/tomcat5/base/*.txt
reading config info for /var/log/tomcat5/base/catalina.out
reading config file vsftpd
reading config info for /var/log/vsftpd.log
reading config file wtmp
reading config info for /var/log/wtmp
reading config file xinetd
reading config info for /var/log/xinetd.*
reading config file xntp
reading config info for /var/log/ntp
reading config file zope
reading config info for /var/opt/zope/*/log/*.log
error: /etc/logrotate.conf:19 unexpected text
error: /etc/logrotate.conf:20 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:27 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:29 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.conf:30 duplicate log entry for /var/log/messages
meine logrotate.conf:
Code:
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# 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
# 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.
/etc/logrotate.d/messages
/var/log/messages {
size=500k
rotate 4
copytruncate
compress
notifempty
missingok
}
/etc/logrotate.d/root
/var/mail/root {
size=500k
rotate 4
copytruncate
compress
notifempty
missingok
}
über eine antwort sie viell. mein problem löst wäre ich dankbar
mfg physicus