Thread View: news.software.nntp
3 messages
3 total messages
Started by Jesse
Tue, 24 Sep 2013 15:12
Disable logging in nnrpd
Author: Jesse
Date: Tue, 24 Sep 2013 15:12
Date: Tue, 24 Sep 2013 15:12
9 lines
1603 bytes
1603 bytes
I may just be having a derp moment, but I cannot find any way through configuration files or command-line switches to disable logging in nnrpd. I run INN on my spool servers and have a separate machine running NNTPSwitch that connects to the proper spool server depending on a few variables. NNTPSwitch is already logging essentially the same thing that nnrpd is logging and I'd like for nnrpd to not log things like the group commands issued. Does a simple method exist or will it require code modification?
Re: Disable logging in nnrpd
Author: Julien ÉLIE
Date: Tue, 24 Sep 2013 20:23
Date: Tue, 24 Sep 2013 20:23
23 lines
2192 bytes
2192 bytes
Hi Jesse, > I may just be having a derp moment, but I cannot find any way through > configuration files or command-line switches to disable logging in nnrpd. > > Does a simple method exist or will it require code modification? Which logging facility are you using? I for one use syslog-ng and I read in its documentation that filtering is possible directly on the name of a program. http://www.syslog.org/syslog-ng/v2/#filterfunc "program(regexp) Match messages by using a regular expression against the program name field of log messages" You could then discard messages from nnrpd, and keep those from innd or other news services. -- Julien ÉLIE « Memoriam quoque ipsam cum uoce perdidissemus, si tam in nostra potestate esset obliuisci quam tacere. » (Tacite, _Vie d'Agricola_)
Re: Disable logging in nnrpd
Author: Jesse
Date: Tue, 24 Sep 2013 20:41
Date: Tue, 24 Sep 2013 20:41
21 lines
2025 bytes
2025 bytes
Julien ÉLIE wrote: > Hi Jesse, > >> I may just be having a derp moment, but I cannot find any way through >> configuration files or command-line switches to disable logging in nnrpd. >> >> Does a simple method exist or will it require code modification? > > Which logging facility are you using? > I for one use syslog-ng and I read in its documentation that filtering > is possible directly on the name of a program. > > http://www.syslog.org/syslog-ng/v2/#filterfunc > "program(regexp) Match messages by using a regular expression against > the program name field of log messages" > > You could then discard messages from nnrpd, and keep those from innd or > other news services. Thanks for the advice, Julien. I am now filtering in rsyslog for messages from nnrpd and this is working great.
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