ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Pavel S. Khmelinsky" <hmepas@yauza.ru>
To: sisyphus@altlinux.ru
Subject: [sisyphus] postfix traffic collector
Date: Thu, 22 May 2003 07:18:41 +0400
Message-ID: <3ECC4191.6060401@yauza.ru> (raw)

Тут понадобилось считать пользовательский трафик на основании 
логов постфикса. Т.е. пришло собшение на адрес user@domain.net, 
мы user'у в трафик n-ое кол-во мегабайт добавили.
Проблема в том что после разделения входящего трафика по 
пользователям нужно еще его поделить по отправителям.
Т.е. локальный почтовый траффик считать не надо.
Постфикс в логи всю полезную информацию выдает отдельными 
строчками, которые идут не всегда подряд, что усложняет написание 
парсера логов. Может быть у кого-нибудь есть готовое решение? Или 
мысли по поводу того как это можно сделать проще? Может есть 
опция для постфикса чтобы он в лог более красивое описание 
входящих сообщений кидал?
Я в результате поиска нашел только это:
http://freshmeat.net/redir/pflogsumm/7822/url_homepage/postfix_contrib.html
только вот считает все подряд, без возможности разделения 
входящего трафика по пользователям на локальный и внешний.



             reply	other threads:[~2003-05-22  3:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-22  3:18 Pavel S. Khmelinsky [this message]
2003-05-22  4:31 ` Mike Lykov
2003-05-22  8:39   ` Igor Dobryninsky
2003-05-22 12:13     ` Dmitry Lebkov
2003-05-22 14:14       ` Pavel S. Khmelinsky
2003-05-22 14:46         ` Dmitry Lebkov
2003-05-22 18:53           ` Pavel S. Khmelinsky
2003-05-22 21:31             ` Dmitry Lebkov

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=3ECC4191.6060401@yauza.ru \
    --to=hmepas@yauza.ru \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git