* [Comm] syslog ?
@ 2005-04-25 14:07 Andrey Rybak
2005-04-25 16:34 ` Eugene Ostapets
2005-04-25 18:13 ` Pavel Usischev
0 siblings, 2 replies; 4+ messages in thread
From: Andrey Rybak @ 2005-04-25 14:07 UTC (permalink / raw)
To: community
Hello, altLinux!!
Наведите на мысль, как вставить непосредственно перед тем, как логи
(например сквида) будут ротэйтиться, нужные мне команды(неважно какие, к
примеру скрипты нужной мне обработки этих логов)?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] syslog ?
2005-04-25 14:07 [Comm] syslog ? Andrey Rybak
@ 2005-04-25 16:34 ` Eugene Ostapets
2005-04-25 18:13 ` Pavel Usischev
1 sibling, 0 replies; 4+ messages in thread
From: Eugene Ostapets @ 2005-04-25 16:34 UTC (permalink / raw)
To: community
25.04.05, Andrey Rybak<ra@iop.kiev.ua> написал(а):
> Hello, altLinux!!
> Наведите на мысль, как вставить непосредственно перед тем, как логи
> (например сквида) будут ротэйтиться, нужные мне команды(неважно какие, к
> примеру скрипты нужной мне обработки этих логов)?
[eugene@master]$ sudo cat /etc/cron.daily/logrotate
#!/bin/sh
exec /usr/sbin/logrotate /etc/logrotate.conf
[eugene@master disk]$ sudo ls -l /etc/logrotate.d/squid
-rw-r--r-- 1 root root 543 Мар 23 15:43 /etc/logrotate.d/squid
--
С уважением,
Евгений Остапец
uin: 23747217
jid: eugene_ostapets@jabber.ru
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] syslog ?
2005-04-25 14:07 [Comm] syslog ? Andrey Rybak
2005-04-25 16:34 ` Eugene Ostapets
@ 2005-04-25 18:13 ` Pavel Usischev
2005-04-26 9:24 ` Andrey Rybak
1 sibling, 1 reply; 4+ messages in thread
From: Pavel Usischev @ 2005-04-25 18:13 UTC (permalink / raw)
To: community
Andrey Rybak пишет:
> Наведите на мысль, как вставить непосредственно перед тем, как логи
> (например сквида) будут ротэйтиться, нужные мне команды(неважно какие, к
> примеру скрипты нужной мне обработки этих логов)?
Вписать в /etc/logrotate.d/squid директиву prerotate. Только наверное
лучше всё-таки postrotate, когда лог уже спокойно лежит в сторонке и в
него наверняка никто ничего не хочет писать.
--
С уважением,
Павел Усищев
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] syslog ?
2005-04-25 18:13 ` Pavel Usischev
@ 2005-04-26 9:24 ` Andrey Rybak
0 siblings, 0 replies; 4+ messages in thread
From: Andrey Rybak @ 2005-04-26 9:24 UTC (permalink / raw)
To: community
Pavel Usischev wrote:
> Andrey Rybak пишет:
>
>> Наведите на мысль, как вставить непосредственно перед тем, как логи
>> (например сквида) будут ротэйтиться, нужные мне команды(неважно
>> какие, к примеру скрипты нужной мне обработки этих логов)?
>
>
> Вписать в /etc/logrotate.d/squid директиву prerotate. Только наверное
> лучше всё-таки postrotate, когда лог уже спокойно лежит в сторонке и в
> него наверняка никто ничего не хочет писать.
>
То, что надо! Спасибо.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-04-26 9:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-25 14:07 [Comm] syslog ? Andrey Rybak
2005-04-25 16:34 ` Eugene Ostapets
2005-04-25 18:13 ` Pavel Usischev
2005-04-26 9:24 ` Andrey Rybak
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git