[Mailman-Users] list statistics
mark.l.johnson at barclays.co.uk
mark.l.johnson at barclays.co.uk
Wed Apr 10 10:34:54 CEST 2002
thanks jon,
that looks promising!! i will give it a go tonight! talk about quick
turnround....
-------------------------------------------
Mark Johnson - Hardware Install Specialist
Central Hardware Installation Team (CHIT)
B5, Ground Floor, Block 10, Radbroke Hall
Barclays Bank PLC - Great Britain
E-Mail: mark.l.johnson at barclays.co.uk
Phone: 01565 612510
-------------------------------------------
> -----Original Message-----
> From: Jon Carnes [mailto:jonc at haht.com]
> Sent: 09 April 2002 20:27
> To: Johnson, Mark : Enable; mailman-users
> Subject: Re: [Mailman-Users] list statistics
>
>
> I'll have to add size to it, but how's this for a start:
>
> Weekly
> ===
> LISTNAM="your list name"
> echo -n "Total post to the list $LISTNAM":
> grep -i "post to $LISTNAME " ~mailman/logs/post |wc -l
> echo " "
> echo "Top 10 posters to the list:"
> grep -i "post to $LISTNAM " ~mailman/logs/post |cut -f 10 "-d " | \
> sort |uniq -c |sort -r |head -10
> ===
> This assumes that there are a weeks worth of logs in
> ~mailman/logs/post
> I actually run the script on the file ~mailman/logs/post.1 -
> after the files
> have been rotated.
> You can, however, run it weekly before you rotate your logs.
>
> If you want monthly stats then you will need to keep 5 weeks
> of logs. I
> rotate my logs weekly and number the logs as such:
> post - current log for postings
> post.1 - last weeks log for postings
> post.2 - postings from 2 weeks ago
> post.3 - postings from 3 weeks ago
> post.4 - postings from 4 weeks ago
> post.5 - postings from 5 weeks ago
>
> Monthly (run on 1st of the month)
> ===
> LISTNAM="your list name"
> MONTH=`date -d "last month" "+%b"`
> echo -n "Total post to the list $LISTNAM":
> grep -i "post to $LISTNAME " ~mailman/logs/post* |wc -l
> echo " "
> grep -i "post to $LISTNAM " ~mailman/logs/post* |grep ":$MONTH " | \
> cut -f 10 "-d " |sort |uniq -c |sort -r |head -10
> ===
>
> Jon Carnes
> ----- Original Message -----
> From: <mark.l.johnson at barclays.co.uk>
> To: <mailman-users at python.org>
> Sent: Tuesday, April 09, 2002 11:20 AM
> Subject: [Mailman-Users] list statistics
>
>
> > all,
> >
> > does anyone know of a plug-in or a hack to get statistics
> from a list? i
> am
> > looking for something that will generate a monthly / weekly
> report with
> > things like: top 10 users, average daily message count,
> average message
> size
> > etc?
> >
> > anyone know of a feature to do this?
> >
> > thanks
> >
> > p.s. great software!!
> >
> > **************
> >
> >
> > Internet communications are not secure and therefore the
> Barclays Group
> > does not accept legal responsibility for the contents of
> this message.
> > Although the Barclays Group operates anti-virus programmes,
> it does not
> > accept responsibility for any damage whatsoever that is caused by
> > viruses being passed. Any views or opinions presented are
> solely those
> > of the author and do not necessarily represent those of the Barclays
> > Group. Replies to this email may be monitored by the Barclays Group
> > for operational or business reasons.
> >
> >
> >
> > ------------------------------------------------------
> > Mailman-Users mailing list
> > Mailman-Users at python.org
> > http://mail.python.org/mailman/listinfo/mailman-users
> > Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
>
Internet communications are not secure and therefore the Barclays Group
does not accept legal responsibility for the contents of this message.
Although the Barclays Group operates anti-virus programmes, it does not
accept responsibility for any damage whatsoever that is caused by
viruses being passed. Any views or opinions presented are solely those
of the author and do not necessarily represent those of the Barclays
Group. Replies to this email may be monitored by the Barclays Group
for operational or business reasons.
More information about the Mailman-Users
mailing list