more than top 10?
Egon Willighagen
egonw at logreport.org
Mon Sep 24 23:17:44 CEST 2001
On Monday 24 September 2001 23:05, Edward Eldred wrote:
> Hola.
>
> Can logreport give me the following numbers?
Not without a bit of hacking... i think it is fixed in the next
release (being released in a week or two, as currently planned).
The reports are generated with scripts... these scripts use
"head -10" to just give the top 10 of the items... removing this
will give *all* items... and this might be a very long list...
I assume that you have the latest Lire distro, and have it installed
in /usr/local
1. go to the directory /usr/local/libexec/lire/email/
2. list the content of the report scripts (files starting with "report_")
3. you will see something like (report_sizeperfromdomain):
echo " <subreport superservice=\"$SUPERSERVICE\" date=\""`date`"\">"
echo " <title>total volume delivered per fromdomain, top 10, size in
bytes</title>"
cut -d' ' -f$DLF_FROMDOMAIN,$DLF_SIZE | sort | dlf_sum | \
while read d s r; do echo $s $d; done | sort -rn | head -10 | \
lr_querycalc2xml --charttype bars
echo " </subreport>"
4. remove the "head -10 |" string (mind the '|' char!)...
you'll get:
cut -d' ' -f$DLF_FROMDOMAIN,$DLF_SIZE | sort | dlf_sum | \
while read d s r; do echo $s $d; done | sort -rn | \
lr_querycalc2xml --charttype bars
5. the report now lists all items
6. repeat this for all reports you mentioned
> deliveries per to-domain, all
> deliveries per from-domain, all
> total volume delivered per to-domain, size in bytes
> total volume delivered per from-domain, size in bytes
> deliveries per to-relay, all
> deliveries per from-relay, all
> deliveries to users, per to-domain, top 10
Let me know if you get in trouble. If you are familiar with Internet
Relay Chat (IRC), you can also ask one of the developers at
#logreport at one of the www.openprojects.net IRC mirrors.
Or just reply to this email.
> etc...
>
> This is probably a dumb question, but I'm a dumb guy.
A question never is... (that is what they always told me)
> ed
regards,
Egon
--
To UNSUBSCRIBE, email to questions-request at logreport.org with a subject of
"unsubscribe". Trouble? Send an email with subject "help" to
questions-request at logreport.org
More information about the Questions
mailing list