Thread View: news.software.nntp
4 messages
4 total messages
Started by Julio Sanchez
Fri, 13 Feb 1998 00:00
Where to send fastcancel output in c-nocem with INN?
Author: Julio Sanchez
Date: Fri, 13 Feb 1998 00:00
Date: Fri, 13 Feb 1998 00:00
20 lines
1141 bytes
1141 bytes
I have been wondering if the output from fastcancel can be merged with /var/log/news/news. Is it safe write to that file while innd is paused? Do I gain anything from doing so? Thanks in advance, Julio -- Julio Sanchez, SGI Soluciones Globales Internet Tel: +34 1 807 21 00 Fax: +34 1 807 21 99 WWW: http://www.esegi.es jsanchez@esegi.es jsanchez@gmv.es Have car, will LART PGP Key fingerprint = E5 29 93 6F 41 4E 00 E2 90 11 A1 8C 72 D0 DE 71
Re: Where to send fastcancel output in c-nocem with INN?
Author: Michael Hall
Date: Sun, 15 Feb 1998 00:00
Date: Sun, 15 Feb 1998 00:00
24 lines
1437 bytes
1437 bytes
On 13 Feb 1998, Julio Sanchez wrote: > I have been wondering if the output from fastcancel can be merged with > /var/log/news/news. I do it on two servers, just search through the script and find where it defines the log file and change it, heres mine: "|fastcancel -li$opt_k$opt_r -f '$lf' $fcadd >>/var/log/news/news") > Do I gain anything from doing so? A bigger logfile :+) -- Mike Hall <mhall@rockisland.com> *nix, Perl, CGI hacker... P.O. Box 1065 Certified OS/2 Specialist Friday Harbor, WA 98250 Sorry, no Win* :-) ***---***---***---***---***---***---***---***---***---*** To get my PGP key send email with Subject: Request PGP key
Re: Where to send fastcancel output in c-nocem with INN?
Author: Julio Sanchez
Date: Tue, 17 Feb 1998 00:00
Date: Tue, 17 Feb 1998 00:00
62 lines
2936 bytes
2936 bytes
olaf@bigred.inka.de (Olaf Titz) writes: > This is the file where syslog sends news.notice, right? (Actual file > name is highly configuration dependent...) No, it is INN's standard output and has lines like this (wrapped around): Feb 17 09:05:46.573 + news-feed1.eu.concert.net <6cbfjt$2ea$1@nnrp1.dejanews.com> (comp/os/linux/networking/104391) 1365 crosspost overview! feedinfo! path! feed1 feed2 ... One could not help but wonder if you had this in mind when you designed the c-nocem log lines (no, only joking, though I barely remember Cnews by now). > > Is it safe write to that file while innd is paused? > > No, although probably damage should be very unlikely. I know that output to that file is NOT line buffered, so merging is dangerous. However, I have experimentally checked that when INN is paused, output to that file is flushed, but I have been unable to find how this is done in the INN source (and such behaviour is not documented). > The correct way is to use the syslog daemon. Look in c-nocem for > "|fastcancel -li$opt_k$opt_r -f '$lf' $fcadd >>$newsctl/log") > and replace that with > "|fastcancel -li$opt_k$opt_r -f '$lf' $fcadd |logger -p news.notice") No, this is out of the question, since INN does not use syslog to write that file. > Depends on what you want to analyze the log with, but in general, it > doesn't gain you anything, since you have the same information, just > in another file. Is only that I hate having to cycle that file independently. Have been doing it manually up to now and was trying to decide what was the proper fix. > (You'll get a huge amount of "unknown log entries" > from stock innlog script.) I already do from fastcancel ;-) I'll try innreport anyway. > I would recommend against it and run whatever log-analyzing script > over the news log instead. Thanks for the advice (and for the soft ;-) Julio -- Julio Sanchez, SGI Soluciones Globales Internet Tel: +34 1 807 21 00 Fax: +34 1 807 21 99 WWW: http://www.esegi.es jsanchez@esegi.es jsanchez@gmv.es Have car, will LART PGP Key fingerprint = E5 29 93 6F 41 4E 00 E2 90 11 A1 8C 72 D0 DE 71
Re: Where to send fastcancel output in c-nocem with INN?
Author: Mark-Oliver Wolter
Date: Fri, 20 Feb 1998 00:00
Date: Fri, 20 Feb 1998 00:00
16 lines
1297 bytes
1297 bytes
Olaf Titz <olaf@bigred.inka.de> wrote:
: It ought to be documented, though. "ctlinnd flushlogs" does a
: different thing and I wonder why this is implemented as a ctlinnd at all.
Because you can do a 'mv ${LOG} ${LOG}.old ; ctlinnd flush' to rotate
your logs manually ... without having to close (=pause) them while
you toss them around.
--
| | | MfG MOW []-)
| | | Leher Heerstr.21, Zi.1403, 28359 Bremen, Tel. ++49-177-2503055
M O W http://www.zfn.uni-bremen.de/~g02o/
/' | `\ Always logon - the bright side of life !
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads