OT: syslog - konfigurace (dlouhe)
Josef Brzak
brzak at linux.fjfi.cvut.cz
Thu Nov 18 02:21:12 CET 2004
Dobry den,
predne se omlouvam za zacatecnicky dotaz.
Mam problem s nastavenim syslogu. Pouzivam FreeBSD 4.10-RELEASE-p3
a chtel bych syslog nastavit tak, aby nelogoval zadne hlasky na
na standartni console tj. vse jen do /var/log/messages pripadne
jineho logovaciho souboru v adresari /var/log/. Jedine co bych
tam pozadoval napr. po vypisu dmesg - hlasky pri startu systemu tj.
Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 4.10-RELEASE-p3 #1: Fri Oct 22 00:29:08 CEST 2004
.
.
.
DUMMYNET initialized (011031)
IPsec: Initialized Security Association Processing.
ad0: 38166MB <ST340014A> [77545/16/63] at ata0-master UDMA33
Mounting root from ufs:/dev/ad0s1a
nic vic :-).
Editoval jsem /etc/syslog.conf
*.err;kern.debug;auth.notice;mail.crit /var/log/messages
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages
security.* /var/log/security
auth.info;authpriv.info /var/log/auth.log
mail.info /var/log/maillog
lpr.info /var/log/lpd-errs
cron.* /var/log/cron
#*.emerg *
# uncomment this to log all writes to /dev/console to /var/log/console.log
#console.info /var/log/console.log
# uncomment this to enable logging of all log messages to /var/log/all.log
# touch /var/log/all.log and chmod it to mode 600 before it will work
#*.* /var/log/all.log
# uncomment this to enable logging to a remote loghost named loghost
#*.* @loghost
# uncomment these if you're running inn
# news.crit /var/log/news/news.crit
# news.err /var/log/news/news.err
# news.notice /var/log/news/news.notice
!startslip
*.* /var/log/slip.log
!ppp
*.* /var/log/ppp.log
predpokladal jsem, ze predelani prvniho radku bude stacit. Syslogd jsem
restartoval a pak jsem restartoval i cely stroj. Nic se nestalo a
stale to loguje i na console - napr.
WARNING: pseudo-random number generator used for IPsec processing
IPv4 ESP input: no key association found for spi 72198025
IPv4 ESP input: no key association found for spi 72198025
IPv4 ESP input: no key association found for spi 72198025
IPv4 ESP input: no key association found for spi 72198025
jeste vypis newsyslog.conf
# logfilename [owner:group] mode count size when flags
[/pid_file] [sig_num]
/var/log/cron 600 3 100 * Z
/var/log/amd.log 644 7 100 * Z
/var/log/auth.log 600 7 100 * Z
/var/log/kerberos.log 600 7 100 * Z
/var/log/lpd-errs 644 7 100 * Z
/var/log/maillog 640 7 * @T00 Z
/var/log/sendmail.st 640 10 * 168 B
/var/log/messages 644 5 100 * Z
/var/log/all.log 600 7 * @T00 Z
/var/log/slip.log root:network 640 3 100 * Z
/var/log/ppp.log root:network 640 3 100 * Z
/var/log/security 600 10 100 * Z
/var/log/wtmp 644 3 * @01T05 B
/var/log/daily.log 640 7 * @T00 ZN
/var/log/weekly.log 640 5 1 $W6D0 ZN
/var/log/monthly.log 640 12 * $M1D0 ZN
/var/log/console.log 600 5 100 * Z
Predem Vam moc dekuji za radu/pomoc.
Pepa Brzak
More information about the Users-l
mailing list