From: Oleg Shulga <oleg@pribor.kharkov.ua>
To: community@altlinux.ru
Subject: Re: [Comm] Squid log analizer SARG
Date: Thu, 25 Nov 2004 11:32:42 +0200
Message-ID: <41A5A6BA.4020306@pribor.kharkov.ua> (raw)
In-Reply-To: <200411250306.02316.community@donec.net>
Roman Lesnichenko пишет:
>Ну и 3 вопрос на закуску Ж)
>
>Есть такой красивый анализер логов Сквида и генератор статистики.
>Вытянул я его в домашней страницы, собрал gcc3.3, настроил конфиг.
>
>
>
>Он отрабатывает пишет мне, что да, лог Сквида опознал, отпарсил, столько-то
>записей...но ничего в итоге не генерит.
>
>
man sarg на предмет -o и -e
-o dir Writes report in dir.
-e email
Sends report to email (stdout for console).
ALM 2.4
squid 2.5.STABLE7
sarg-2.0.1
gcc3.3.3
Все работает так.
в /etc/logrotate.d/ прибит squid.
используются три скрипта (для daily, weekly, monthly)
в последнем есть строчка squid -k rotate.
в трех скриптах используется различный -o
кроме того есть один daily с -e
вот пример
cat /etc/cron.daily/sarg.daily
#!/bin/bash
#Get current date
TODAY=$(date +%d/%m/%Y)
#Get one week ago today
YESTERDAY=$(date --date "1 day ago" +%d/%m/%Y)
/usr/bin/sarg -o /var/www/html/squid-reports/daily -z -d $YESTERDAY-$TODAY
exit 0
--
WBR
Oleg Shulga, Kharkov Pribor, IT Manager
next prev parent reply other threads:[~2004-11-25 9:32 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-25 1:06 Roman Lesnichenko
2004-11-25 3:04 ` Беляев Владимир Николаевич
2004-11-25 5:03 ` Nizamov Shavkat
2004-11-25 5:27 ` Mike Lykov
2004-11-25 23:07 ` Roman Lesnichenko
2004-11-25 6:44 ` Beshkov Andrew
2004-11-25 7:33 ` Alexey Morsov
2004-11-25 8:32 ` Re[2]: " Беляев Владимир Николаевич
2004-11-25 9:32 ` Oleg Shulga [this message]
2004-11-25 20:36 ` Roman Lesnichenko
2004-11-26 8:44 ` Oleg Shulga
2004-11-26 10:27 ` Nizamov Shavkat
2004-11-26 11:31 ` Oleg Shulga
2004-11-26 12:10 ` Roman Lesnichenko
2004-11-26 13:39 ` Andriy Dobrovol's'kii
2004-11-26 13:56 ` Roman Lesnichenko
2004-11-26 14:05 ` Andriy Dobrovol's'kii
2004-11-27 0:34 ` Roman Lesnichenko
2004-11-26 14:23 ` Oleg Shulga
2004-11-27 0:42 ` Roman Lesnichenko
2004-11-29 9:44 ` Oleg Shulga
2004-11-29 19:33 ` Roman Lesnichenko
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=41A5A6BA.4020306@pribor.kharkov.ua \
--to=oleg@pribor.kharkov.ua \
--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