[Linux-HA] Heartbeat Logging

Andrew Beekhof beekhof at gmail.com
Mon Jan 22 15:29:28 MST 2007


On 1/22/07, Pavol Gono <palo.gono at gmail.com> wrote:
> On 1/19/07, Andrew Beekhof <beekhof at gmail.com> wrote:
> > On 1/19/07, Andrew Beekhof <beekhof at gmail.com> wrote:
> > > On 1/18/07, Florent Bouron <florent.bouron at sytec.co.nz> wrote:
> > > > Hi Andrew,
> > > >
> > > > Yep, I've read it and I've tried to apply want I understood from it.
> > > > I actually understood that :
> > > >         - nothing need to be defined in ha.cf except "use_logd on". Is
> > > > "debug 0" still required ?
> > >
> > > i think thats the default so, no.
> > >
> > > >         - /etc/logd.cf receives the log configuration
> > >
> > > if you mean s/receives/contains/ then yes
> > >
> > > > and should not include any logfacility directive to disable syslog.
> > >
> > > where did you find that?
> > >
> > > >         - However, the ha_logd.cf example indicates that the default
> > > > facility is local7
> > > > Here are my conf files : it looks like even with nothing, messages are
> > > > to be sent to syslog ???
> > >
> > > i just poked around in the code and it does seem that there is no way
> > > to not log to syslog.
> > >
> > > sigh.
> > >
> > > i'll see what i can do...
> >
> > ok, see the following two commits:
> >   http://hg.beekhof.net/lha/crm-dev/rev/1b4161dc0042
> >   http://hg.beekhof.net/lha/crm-dev/rev/effbf74e7cad
> >
> > they will allow you to set "log_facility none" in ha.cf or logd.cf and
> > achieve the behavior you're after.
>
> Hi
>
> I used latest sources from http://hg.linux-ha.org/dev/, rev 10038.
> I tried "logfacility none" in /etc/logd.cf and I saw in log:
> logd: [1357]: ERROR: Config file [/etc/logd.cf] is incorrect.
>
> The attached patch shall fix it, with this change I was able to
> disable syslog messages.

ah, thanks for spotting that.


More information about the Linux-HA mailing list