Re: Re: lug-bg: syslog Problem
- Subject: Re: Re: lug-bg: syslog Problem
- From: hristo@xxxxxxxxxxxx (Hristo Nazarov)
- Date: Fri, 1 Jun 2001 09:53:58 -0700
Mersi za primera...Ima i neshto podobno w man logrotate.Ama wse pak ne mi e
iasno towa ot kade e doshlo...?
> >-rw------- 1 root root 23362 May 31 18:34
> >messages
> >-rw------- 1 root root 1005814 May 31 14:01
> >messages.1
> >-rw------- 1 root root 845282 May 21 00:07
> >messages.2
> >-rw------- 1 root root 865598 May 14 18:57
> >messages.3
> >-rw------- 1 root root 555223 May 6 10:37
> >messages.4
----- Original Message -----
From: "Todor Belev" <todorin@xxxxxx>
To: <lug-bg@xxxxxxxxxxxxxxxxxx>
Sent: Thursday, May 31, 2001 9:51 AM
Subject: Re: Re: lug-bg: syslog Problem
>
> V /etc/logrotate.d/syslog
> trebe da imash neshto podobno
> i to vyrshi cialata rabota :
>
> /var/log/messages {
> postrotate
> /bin/kill -HUP `cat /var/run/syslogd.pid
> 2> /dev/null` 2> /dev/null || true
> endscript
> }
>
> /var/log/secure {
> postrotate
> /bin/kill -HUP `cat /var/run/syslogd.pid
> 2> /dev/null` 2> /dev/null || true
> endscript
> }
>
> /var/log/maillog {
> postrotate
> /bin/kill -HUP `cat /var/run/syslogd.pid
> 2> /dev/null` 2> /dev/null || true
> endscript
> }
>
> /var/log/spooler {
> postrotate
> /bin/kill -HUP `cat /var/run/syslogd.pid
> 2> /dev/null` 2> /dev/null || true
> endscript
> }
>
> /var/log/boot.log {
> postrotate
> /bin/kill -HUP `cat /var/run/syslogd.pid
> 2> /dev/null` 2> /dev/null || true
> endscript
> }
>
> /var/log/cron {
> postrotate
> /bin/kill -HUP `cat /var/run/syslogd.pid
> 2>/dev/null` 2>/dev/null || true
> endscript
> }
>
>
> Todorin
>
>
>
> >-------- Îðèãèíàëíî ïèñìî --------
> >Îò: <owner-lug-bg@xxxxxxxxxxxxxxxxxx>
> >Îòíîñíî: Re: lug-bg: syslog Problem
> >Äî : <lug-bg@xxxxxxxxxxxxxxxxxx>
> >Èçïðàòåíî íà: 31.05.2001 18:46:59
> >-----------------------------------
> >
> >Zdravejte,
> >towa mi e etc/logrotate.conf
> >
> >
> > cat /etc/logrotate.conf
> ># see "man logrotate" for details
> ># rotate log files weekly
> >weekly
> >
> ># keep 4 weeks worth of backlogs
> >rotate 4
> >
> ># send errors to root
> >errors root
> >
> ># 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 lastlog or wtmp -- we'll rotate them
> >here
> >/var/log/wtmp {
> > monthly
> > create 0664 root utmp
> > rotate 1
> >}
> >
> >
> ># system-specific logs may be configured here
> >
> >
> >Opredeleno ne mi pipa /var/log/mesagess...
> >obache v /var/log ima slednoto....
> >-rw------- 1 root root 23362 May 31 18:34
> >messages
> >-rw------- 1 root root 1005814 May 31 14:01
> >messages.1
> >-rw------- 1 root root 845282 May 21 00:07
> >messages.2
> >-rw------- 1 root root 865598 May 14 18:57
> >messages.3
> >-rw------- 1 root root 555223 May 6 10:37
> >messages.4
> >
> >
> >Nikoj moze li da mi kaze tia messages.x ot kade sa
> >doshli...?
> >Mersi.
> >----- Original Message -----
> >From: "Nickola Kolev" <minus273@xxxxxxx>
> >To: <lug-bg@xxxxxxxxxxxxxxxxxx>
> >Sent: Thursday, May 31, 2001 8:06 AM
> >Subject: Re: lug-bg: syslog Problem
> >
> >
> >> > Sashtoto neshto se e poluchavalo i pri men na SuSE
> >Linux. I az ne znam
> >ot
> >> > kakvo se poluchava, no sam zabeljazal, che stava v
> >momenta na
> >arhiviraneto
> >> i
> >> > izchistvaneto na log failovete. Tekushtija se
> >tar.gz-va, no sled tova
> >> novija
> >> > prazen fail ne shte da se palni s novi saobshtenija
> >i taka do
> >> restartiraneto
> >> > na syslog-a. Tova estestveno ne se poluchava vinagi
> >i tochno tova me
> >> > uchudva. Ako njakoj ni svetne po problema shte sam
> >mu mnogo blagodaren.
> >> >
> >>
> >> Íîðìàëíî å äà òðÿáâà äà ñå ðåñòàðòèðà syslogà, çà äà
> >ïî÷íå äà ïèøå â íîâèÿ
> >> ôàéë.
> >> Logrotate îáà÷å ìèñëÿ, ÷å àâòîìàòè÷íî ñå ñïðàâÿ ñ òàÿ
> >çàäà÷êà.
> >> Âúïðîñà å â êîíôèãóðàöèîííèÿ ìó ôàéë âñè÷êî äà ñå
> >óêàæå ïðàâèëíî, ò.å. ïî
> >> êàêúâ êðèòåðèé
> >> ùå ñå âúðòÿò æóðíàëíèòå ôàéëîâå (ïî äîñòèãíàò îáåì,
> >íà îïðåäåëåí èíòåðâàë
> >è
> >> ò.í.) è êàêâà êîìàíäà
> >> äà ñà çàäàäå, ÷å äà ñå "kill -HUP"-íå sysloga.
> >>
> >> òóéòî.
> >>
> >> minusa
> >>
> >>
> >===========================================================
> ================
> >> A mail-list of Linux Users Group - Bulgaria (bulgarian
> >linuxers)
> >> http://www.linux-bulgaria.org/ Hosted by Internet
> >Group Ltd. - Stara
> >Zagora
> >>
> >
> >===========================================================
> ================
> >A mail-list of Linux Users Group - Bulgaria (bulgarian
> >linuxers)
> >http://www.linux-bulgaria.org/ Hosted by Internet Group
> >Ltd. - Stara Zagora
> >
> -----------------------------------
> Ïîèñêàé... è ùå ïîëó÷èø - PC + áåçïëàòåí Internet. Èñêàìå ÒÅ â
http://www.iskamte.com/
>
>
>
>
>
===========================================================================
> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
> http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara
Zagora
>
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|