Article View: news.software.nntp
Article #90430Re: Generating newsgroup stats
From: John
Date: Fri, 16 Jun 2023 16:17
Date: Fri, 16 Jun 2023 16:17
28 lines
2009 bytes
2009 bytes
Julien ΓLIE <iulius@nom-de-mon-site.com.invalid> writes: > Hi John, > >> I'm running an INN server and I'd like to generate stats on 'where the >> posts go' -- which groups are getting the most posts in a given day. >> Is this information already collected somewhere and I'm just unaware >> of >> it? Otherwise, it seems that the logs going to /var/log/news/news would >> be sufficient if they included the Newsgroups: header instead of just >> the Message-ID, but I don't see an option to include that in the logs on >> reading the inn.conf man page. This would actually be ideal because I >> could then feed the logs into my log analytics tool and get really >> detailed. >> Suggestions? > > This information is indeed not directly logged. Knowing the > Message-ID (logged), you may however just run the following command > from your script to get the comma-separated list of newsgroups: > > % grephistory '<86ilbnqufw.fsf@building-m.net>' | sm -H | grep > Newsgroups | cut -f2 -d' ' > news.software.nntp Thank you, that's a good start... an hourly cron job and a simple shell script could get me pretty close, I think. john
Technical Details
Message-ID:
<86edmbqt43.fsf@building-m.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<86ilbnqufw.fsf@building-m.net> <u6i0hs$1lqvs$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <86edmbqt43.fsf@building-m.net> Subject: Re: Generating newsgroup stats Date: Fri, 16 Jun 2023 16:17:32 +0000 From: John <john@building-m.net> References: <86ilbnqufw.fsf@building-m.net> <u6i0hs$1lqvs$1@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.nntp Organization: Building M Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ritvax.building-m.net; posting-host="localhost:::1"; logging-data="253581"; mail-complaints-to="abuse@building-m.net" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cancel-Lock: sha1:fysAA9qJ/8KcjesluGVdLCpzw60=