Article View: news.software.nntp
Article #23022Re: new top1000
From: Ragnar Lonn
Date: Fri, 07 Nov 1997 00:00
Date: Fri, 07 Nov 1997 00:00
83 lines
3538 bytes
3538 bytes
In article <63rtbd$19a@osh1.datasync.com>, rocker@datasync.com (Ray Rocker)
wrote:
>I'm just glad my inpaths output got there in time. Kicked it off
>(my first time) sometime on Oct 30, and nervously kept an eye on
>it with strace all day the 31st as it cranked through the spool...
>it finished THREE MINUTES AFTER MIDNIGHT on the 1st.
>
>Then it dawned on me that it was three minutes after 6 am in France,
>and I was surely too late.
>
>But they took 'em. :-) Now I install the other faster inpaths program.
>
We also started submitting stats this month and I quickly realized that
even if I compressed the files I wouldn't have room to save inpath data for
a whole month so I added a few lines to scanlogs so that the script rotates
the pathlog every day when news.daily is run and then I keep the logs for
7 days (CYCLES=7 in innshellvars). On the 27th of each month I take all the
current logs (which means I'll submit data for the 20th to the 26th or
something like that, each month), run them through the inpaths program
and send away the result to the pathsurvey address. It seems to me a
pretty neat solution that doesn't occupy too much diskspace and is
is made wholly automated with little effort. The compressed pathlog files
occupy about 10MB per day so keeping them for a week means about
70MB of diskspace used. This is probably OK for most people but keeping
data for a month means some 300MB of disk consumed and that might
interfere with ones ability to keep other logs online any longer period of
time.
If anyone is interested, here's the whole setup, your paths may differ:
Newsfeeds entry:
--------------------------------------------------
# path! - collect Path headers from articles
#
path!\
:to.path\
:Tc,WH\
:/news/inpaths/pathgrep path.log
Patch to scanlogs for logfile rotating:
-------------------------------------------------------------
25a26,27
> ## Pathlog for pathsurvey
> PATHLOG=${MOST_LOGS}/path.log
44c46
< LOGS="${ERRLOG} ${EXPLOG} ${LOG} ${ACTIVEFILE} ${SYSLOGS} ${UNWANTED_LOG}"
---
> LOGS="${ERRLOG} ${EXPLOG} ${LOG} ${ACTIVEFILE} ${SYSLOGS} ${UNWANTED_LOG}
${PATHLOG}"
99a102
> ctlinnd drop path\!
108c111
< for F in ${LOG} ${ERRLOG} ${EXPLOG} ; do
---
> for F in ${LOG} ${ERRLOG} ${EXPLOG} ${PATHLOG} ; do
147a151,152
> ctlinnd begin path\!
Crontab entry:
-------------------------------------------
02 02 27 * * /news/scripts/send-inpaths.sh
send-inpaths.sh script:
-------------------------------------------
#!/bin/sh
PATHLOG=/var/log/news/OLD/path.log
SED=/bin/sed
ZCAT=/bin/zcat
INPATHS=/news/inpaths/inpaths
${ZCAT} ${PATHLOG}.?.Z | ${SED} -e 's/\!\!/\!/g' |
${INPATHS} -p "algonet.se" |
/bin/mail pathsurvey@pathsurvey.eu.org
echo "Inpath data mailed to pathsurvey@pathsurvey.eu.org"
echo "Files used were these:"
ls -l ${PATHLOG}*
Technical Details
Message-ID:
<63vc9f$ils$1@pepsi.tninet.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-mailReferences:
<63qdg7$4lu$1@flea.best.net> <Pine.GSO.3.93.971106065644.29001A-100000@dahlia.vszbr.cz> <63rtbd$19a@osh1.datasync.com>Show Full Headers
Complete Article Headers
Message-ID: <63vc9f$ils$1@pepsi.tninet.se> Subject: Re: new top1000 Date: Fri, 07 Nov 1997 00:00:00 +0000 From: prl@algonet.se (Ragnar Lonn) References: <63qdg7$4lu$1@flea.best.net> <Pine.GSO.3.93.971106065644.29001A-100000@dahlia.vszbr.cz> <63rtbd$19a@osh1.datasync.com> 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: 288309036 Organization: Algonet/TNI Newsgroups: news.software.nntp