Article View: news.software.nntp
Article #15078Re: Newsfeed metrics: log/news vs. log/news.notice
From: Gordy Thompson
Date: Sat, 15 Feb 1997 00:00
Date: Sat, 15 Feb 1997 00:00
88 lines
4199 bytes
4199 bytes
I've learned a great deal from this thread about the flow of
incoming articles, the merits and disadvantages of streaming and much
more. But because I started with an unfocussed question, I still don't
know what I _need_ to know, which is: "What exactly is being logged in
log/news and in log/news.notice?"
If I count and array acceptance/refusal/rejection by site in
log/news, I get this:
Offered Accepted % Accepted Refused Rejected
(feed1) xxxxx xxxxx xx.xx% xxxx xxx
(feed2) yyyyy yyyyy yy.yy yyyy yyy
(...)
localhost x x 100% 0 0
Totals 324905 246649 75.91% 76020 2236
The daily report from innlog.pl, derived from log/news.notice,
however, gives me this:
System Connects Offered Took Tk% Refuse Reject Accpt Elapsed
firewall xxxx xxxx xxxx xx% xxxxx xxxx xx% xxxxxxxxx
localhost x xx xx xx% 0 0 xx% xxxxxxxxx
TOTALS 2898 601505 265463 100% 258375 77667 44% 811:06:55
(The first report is extracted a few hours before the second,
so its "accepted" figure is slightly less than the "took" figure in
the second. Otherwise they're equivalent.)
I want to judge the efficiency of my feeds, but because my
feeds come through a relay on the firewall, logging by "host"
(log/news.notice) is useless -- it all comes from one "host", the
firewall. Logging by "site" is done in log/news, but most of the
refusals and rejections are missing from there.
Q: Am I wasting my time analyzing log/news because the
acceptance/refusal/rejections by host aren't representative of
efficiency (because it's not logging a bunch of refusals/rejections
that occurred prior to whatever it's tallying)?
Q2: Assuming I am, could someone show me the way to a patch to
(art.c? chan.c? something?) so that log/news.notice would log
connections by =site= rather than by =host=?
Finally, I've been asked by a few people for the perl script I
used to extract the report from log/news (credit where credit is due
-- the author is Felix Sheng <felix@nytimes.com> of NYT Electronic
Media).
Takes input from stdin (gttlog.pl < /var/INN/log/news):
----- cut here -----
#!/usr/bin/perl
while(<>) {
($code, $sender) = (split(/\s+/))[3,4];
$hash{$sender}{$code}++;
$hash{$sender}{total}++;
$hash{zzTotals}{$code}++;
$hash{zzTotals}{total}++;
}
foreach $k (sort keys %hash) {
$percentacc = sprintf( "%3.2f", ($hash{$k}{'+'} / $hash{$k}{total}
) * 100);
write;
}
format STDOUT_TOP =
Host Offered Accepted % Accepted Refused
Rejected
..
format STDOUT =
@<<<<<<<<<<<<<<<<< @>>>>>>>>> @>>>>>>>> @>>>>>% @>>>>>>>
@>>>>>>>>
$k, $hash{$k}{total}, $hash{$k}{'+'}, $percentacc, $hash{$k}{'-'},
$hash{$k}{j}
..
----- cut here -----
==========================================================================
Gordon T. Thompson gordy@nytimes.com
Manager, Internet Services 212 556 1386
The New York Times fax: 212 556 1636
This letter has been modified as follows from its original
version: It has been formatted to fit your screen.
Technical Details
Message-ID:
<330608dd.49402840@newsgate>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-mailReferences:
<3300d236.10115866@newsgate> <gergE5J5ws.5Ju@netcom.com> <3303f546.70855392@newsgate> <Pine.SOL.3.95.970214094239.8276F-100000@dahlia> <5e4gdh$2rm$1@news.du.etx.ericsson.se>Show Full Headers
Complete Article Headers
Message-ID: <330608dd.49402840@newsgate> Subject: Re: Newsfeed metrics: log/news vs. log/news.notice Date: Sat, 15 Feb 1997 00:00:00 +0000 From: gordy@nytimes.com (Gordy Thompson) References: <3300d236.10115866@newsgate> <gergE5J5ws.5Ju@netcom.com> <3303f546.70855392@newsgate> <Pine.SOL.3.95.970214094239.8276F-100000@dahlia> <5e4gdh$2rm$1@news.du.etx.ericsson.se> 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: 219021771 Distribution: inet Content-Type: text/plain; charset=us-ascii Organization: The New York Times Mime-Version: 1.0 Newsgroups: news.software.nntp