View previous topic :: View next topic |
Author |
Message |
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1555 Location: Adelaide/Australia
|
Posted: Wed Jul 10, 2013 12:12 am Post subject: [Solved] syslog-ng-3.4.2 - correcting mode |
|
|
I just updated to syslog-ng-3.4.2 and after tweaking my config file I restarted it.
However, I note that it mentions it is running in 'correcting-mode'.
I was wondering if this is something I need to address?
Is this implying that there is some old setting which syslog-ng is 'correcting'
My config files are pretty much default with a minor change in the main syslog-ng.conf file to @include "syslog-ng.local.conf" immediately after the @include "scl.conf" line
The contents of my syslog-ng.local.conf is as follows :-
Code: | @version: 3.2
# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.3.2,v 1.1 2011/01/18 17:44:14 mr_bones_ Exp $
#
# Syslog-ng default configuration file for Gentoo Linux
filter f_local5 {facility(local5);};
destination m_samba_audit { file("/var/log/samba/audit.log"); };
log { source(src); filter(f_local5);destination(m_samba_audit); flags(final); };
|
_________________ ...Lyall
Last edited by lyallp on Wed Jul 10, 2013 1:33 pm; edited 1 time in total |
|
Back to top |
|
|
Bones McCracker Veteran
Joined: 14 Mar 2006 Posts: 1611 Location: U.S.A.
|
Posted: Wed Jul 10, 2013 1:16 pm Post subject: |
|
|
Are you sure it's not telling you that it's correcting the mode?
There is no reference to a "correcting mode" in the documentation. However, there are many things this could refer to.
syslog-ng has modes:
client
server
relay
it has a configuration option "mark_mode()":
internal
dst-idle
host-idle
periodical
none
global
the configuration options unix_dgram() and unix_stream() open the specified unix socket in SOCK_DGRAM mode or SOCK_STREAM mode
the file() and pipe() sources open their target in read and read-write mode, respectively (which I suppose could conceivably include "correcting" the mode of an already open object)
syslog-ng-ctl has modes:
verbose
debug
trace
mongo-db (if you have gone that route) has a "safe mode".
I suppose if you can't tell from context what it's referring to, the only way to really know is to search the source code for the string "correcting mode" and figure out what logic causes that message to be emitted. _________________
patrix_neo wrote: | The human thought: I cannot win.
The ratbrain in me : I can only go forward and that's it. |
|
|
Back to top |
|
|
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1555 Location: Adelaide/Australia
|
Posted: Wed Jul 10, 2013 1:32 pm Post subject: |
|
|
You are correct, it must have been 'correcting the mode' or something equally obscure.
I restart syslog-ng now and I do not see the correcting mode message.
I suspect I figured I had seen it more than once as I have 4 gentoo instances I maintain and I probably thought I had seen it twice on one machine.
Thanks for taking the time to reply. _________________ ...Lyall |
|
Back to top |
|
|
|