🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #15835

Re: Determine how much data has been transferred..

#15835
From: Matthew White
Date: Thu, 13 Mar 1997 00:00
69 lines
2527 bytes
dillon@flea.best.net (Matt Dillon) wrote:

>:In article <33276187.56FB@india.hp.com>,
>:Padisetti Rajeswara Rao  <prrao@india.hp.com> wrote:
>:>hi all
>:>
>:>I am working using inn1.4 on HP-UX 10.x
>:>
>:>I am interested in knowing..
>:>
>:>How much data (or how many bytes) has been transferred
>:>in and out through the newsfeed.
>:>
>:>The log file does log the number of articles that have
>:>been transferred (with statistics like accepted, rejected
>:>and refused ) but does not log the amount of data that
>:>has been transferred.
>:>
>:>One way to acheive this is keep polling the freespace on
>:>hard disk. But, this does not give exact picture
>:>becuz there could be some local postings.
>:>
>:>
>:>Best Regards,
>:>
>:>-- 
>:>
>:>Raj
>
>    innd doesn't really keep track of the number of bytes. 
>
>    At the moment, a full feed runs 5 gigabytes and 300,000
>    articles a day.  A large portion of that is alt.binaries.
>    With appropriate filtering, you can cut it down to around
>    2 gigabytes a day.  You can get the full details from:
>
>    http://thereisnocabal.news.erols.com/
>
>					-Matt

Hmmm....

I'm using INN-1.5.1, so that might make a difference.

I was under the impression that it did log file size. I get this in
/var/log/news/news:

(long line broken up.)

Mar 13 10:48:28.520 + news.sprintlink.net [....]
		      ^^^^ 
		where it came from
<3390ba6b.897045297@aklobs.org.nz> (sci/physics/72240) [....]
^^^^				      ^^^^^^^^^^  
msg. ID			       where the article is
3604 overview coyote.channel1.com wizard.pn.com
^^^^ 
size 

I've written a perl script that can harvest this information, but I
don't know how portable it is.  It uses a really big regex that only
recognizes lines like the one above.  Am I correct in assmuing that
not all log files look alike?  Would anyone like to see this script?

-Matthew


Technical Details
Message-ID: <3329210e.255361779@news1>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <33276187.56FB@india.hp.com> <5g7r3l$h2b@flea.best.net>

Show Full Headers
Complete Article Headers
Message-ID: <3329210e.255361779@news1>
Subject: Re: Determine how much data has been transferred..
Date: Thu, 13 Mar 1997 00:00:00 +0000
From: mtw@user1.channel1.com (Matthew White)
References: <33276187.56FB@india.hp.com> <5g7r3l$h2b@flea.best.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 225213036
Distribution: inet
Organization: Channel 1 Communications
Newsgroups: news.software.nntp