Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: syslog Problem


  • Subject: Re: lug-bg: syslog Problem
  • From: hristo@xxxxxxxxxxxx (Hristo Nazarov)
  • Date: Thu, 31 May 2001 18:39:12 -0700



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



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.