Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] syslog-ng-3.4.2 - correcting mode
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1248
Location: Adelaide/Australia

PostPosted: Wed Jul 10, 2013 12:12 am    Post subject: [Solved] syslog-ng-3.4.2 - correcting mode Reply with quote

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
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1553
Location: U.S.A.

PostPosted: Wed Jul 10, 2013 1:16 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1248
Location: Adelaide/Australia

PostPosted: Wed Jul 10, 2013 1:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum