[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] Re: How to get less output in syslog?



On Tue, Oct 20, 2009 at 09:07:55AM +0200, Matthias Andree wrote:
> Am 19.10.2009, 22:20 Uhr, schrieb Chris G <cl@xxxxxxxx>:
>
>> Is there any way to reduce fetchnews' verbosity in syslog?  By default
>> it outputs a line to syslog for every newsgroup being read.  At
>> present about 99% of my syslog is fetchnews output!  It's not a major
>> problem but it would be nice to quieten it down a bit.
>>
>> The README file tells me how to *increase* output to syslog but not
>> how to reduce it.
>
> That's a courtesy of the leafnode documentation, because not capturing  
> news logging used to be a very common problem among distributions.
>
> Otherwise, the usual syslog configuration (/etc/syslog.conf usually) is  
> the way to go. Likely using something like "news.warning" there will 
> help; most syslogds I know need SIGHUP to re-read their configuration.
>
Hmmmmm.  My /etc/syslog.conf has the following relating to news:-

    # Logging for INN news system
    #
    news.crit                       /var/log/news/news.crit
    news.err                        /var/log/news/news.err
    news.notice                     -/var/log/news/news.notice

which works perfectly, there are the expected, quite small, files in
/var/log/news. 

My problem is the huge amount of logging being put into
/var/log/syslog and this is controlled by a the line:-

    *.*;auth,authpriv.none          -/var/log/syslog

So I guess I need to add a bit for news:-

    *.*;auth,authpriv.none;news.warning -/var/log/syslog

However this will presumably turn off *all* the fetchnews logging in
syslog.  I'd quite like some indication that fetchnews is running but
witout the reporting of every newsgroup.  E.g. at present I get:-

    Oct 20 09:53:01 chris /USR/SBIN/CRON[32598]: (news) CMD (if [ -x /etc/news/leafnode/do-fetch-n>
    Oct 20 09:53:01 chris fetchnews[32602]: news.eternal-september.org: connected to 188.40.43.213>
    Oct 20 09:53:02 chris fetchnews[32602]: news.eternal-september.org: 0 articles posted.
    Oct 20 09:53:02 chris fetchnews[32602]: news.eternal-september.org: got 0 new newsgroups.
    Oct 20 09:53:02 chris fetchnews[32602]: news.eternal-september.org: reading server info from />
    Oct 20 09:53:02 chris fetchnews[32602]: uk.business.telework: no new articles
    Oct 20 09:53:02 chris fetchnews[32602]: fr.rec.bateaux: no new articles
    Oct 20 09:53:03 chris fetchnews[32602]: misc.transport.rail.europe: no new articles
    [60 or so more lines like this]
    Oct 20 09:53:07 chris fetchnews[32602]: news.annexcafe.com: connected to 75.126.20.16:119, rep>
    Oct 20 09:53:08 chris fetchnews[32602]: news.annexcafe.com: 0 articles posted.
    Oct 20 09:53:08 chris fetchnews[32602]: news.annexcafe.com: got 0 new newsgroups.
    Oct 20 09:53:08 chris fetchnews[32602]: news.annexcafe.com: reading server info from /var/spoo>
    Oct 20 09:53:08 chris fetchnews[32602]: annexcafe.announce: no new articles
    Oct 20 09:53:08 chris fetchnews[32602]: annexcafe.dba.blacksea: no new articles
    Oct 20 09:53:09 chris fetchnews[32602]: annexcafe.dba.social: no new articles
    [etc.]

Just the first line above and one line for each NNTP server connected
to would be sufficient to tell me when fetchnews is connecting.  Then
turn on debugging in some shape or form to see the individual
newsgroups being collected.  It would be really nice if, for example,
I could set "debugmode=-1" in the leafnode configuration to turn
things down a bit.



-- 
Chris Green

-- 
_______________________________________________
leafnode-list mailing list
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list
http://leafnode.sourceforge.net/