ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Ilya Palagin <tux@fioc.kz>
To: community@altlinux.ru
Subject: [Comm] Re: squid
Date: Fri, 1 Aug 2003 22:31:40 +0700
Message-ID: <20030801153140.GA803@tux> (raw)
In-Reply-To: <823539327.20030801150737@empils.ru>

On Fri, Aug 01, 2003 at 03:07:37PM +0400, Роман Тутов wrote:
...
> Не. Нужно в реальном времени анализировать строчку , что попадает в
> лог . Ежели кто чего не так ,писать письмо на имя рута

Можно сделать перловый, например, скрипт, который будет раз в
секунду читать приращения лога и анализировать строчки:

open(FH, "</var/log/squid/access.log");
for (;;) {
	while (<FH>) {
		# проверки с помощью regex
		# отсюда же посылайте письма админу
	}
	sleep 1
	seek(FH, 0, 1);
}



  parent reply	other threads:[~2003-08-01 15:31 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-01  8:19 [Comm] squid Роман Тутов
2003-08-01  8:26 ` Maxim.Savrilov
2003-08-01  8:27 ` Maxim.Savrilov
2003-08-01  8:33 ` Mike Lykov
2003-08-01  8:37 ` Maxim Tyurin
2003-08-01  8:41   ` [Comm] Re: [JT] squid Vitaly Ostanin
2003-08-01 10:03     ` "KoLyA" 
2003-08-01 10:15       ` Re[2]: " Роман Тутов
2003-08-01 10:40         ` Re[3]: " "KoLyA" 
2003-08-01 10:44       ` Vitaly Ostanin
2003-08-01 11:04         ` "KoLyA" 
2003-08-01 10:09   ` Re[2]: [Comm] squid Роман Тутов
2003-08-01 10:26     ` [JT][Comm] squid Mike Lykov
2003-08-01 10:32       ` Re[2]: " Роман Тутов
2003-08-01 10:43         ` Mike Lykov
2003-08-01 12:42         ` Re[3]: " Nick S. Novikov
2003-08-01 10:37     ` [Comm] squid Maxim Tyurin
2003-08-01 10:47       ` Re[2]: " Роман Тутов
2003-08-02 12:03         ` Re[3]: " Vv
2003-08-01 10:47     ` [Comm] squid Vitaly Ostanin
2003-08-01 11:07       ` Роман Тутов
2003-08-01 11:16         ` Re[2]: " "KoLyA" 
2003-08-01 11:20           ` Dmytro O. Redchuk
2003-08-01 11:28             ` Re[2]: " "KoLyA" 
2003-08-01 11:33               ` Dmytro O. Redchuk
2003-08-01 12:49               ` [Comm] Re: [JT] squid Vitaly Ostanin
2003-08-01 15:07                 ` Michael Bykov
2003-08-01 11:35           ` [Comm] squid Alexey I. Froloff
2003-08-01 11:18         ` Dmytro O. Redchuk
2003-08-01 11:49           ` Re[2]: " Роман Тутов
2003-08-01 12:04             ` Maxim Tyurin
2003-08-01 12:13             ` Re[3]: " "KoLyA" 
2003-08-02 19:00             ` Denis Smirnov
2003-08-01 11:46         ` Mike Lykov
2003-08-01 15:31         ` Ilya Palagin [this message]
2003-08-02 12:01         ` Re[2]: " Vv
2003-08-04 12:01           ` Re[3]: " "KoLyA" 
2003-08-01 11:10       ` Maxim Tyurin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030801153140.GA803@tux \
    --to=tux@fioc.kz \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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