[syslog-ng] syslog-ng doesn't log messages

Sandor Geller wildy at balabit.hu
Mon Aug 7 10:36:41 CEST 2006


Fernando Loureiro wrote:
> I think everything is ok with my conf but it isn't working with some
> applications such as openldap, apcupsd.
> 
> Can somebody help me? Here is a part of my conf.
> 
> 
> []s
> -- Fernando
> 
> 
> ------------------------------
> 
> options {
>         chain_hostnames(off);
>         sync(0);
>         use_dns(no);
>         create_dirs(yes);
>         };
> 
> source kernsrc { file("/proc/kmsg"); internal(); };
> 
> destination  openldap    { file("/var/log/openldap.log");                 };
> destination  apcupsd     { file("/var/log/apcupsd.log");                  };
> 
> filter  f_openldap  { program(slapd);                                   };
> filter  f_apcupsd   { program(apcupsd);                                 };
> 
> log { source(kernsrc); filter(f_openldap);
> destination(openldap);          };
> log { source(kernsrc); filter(f_apcupsd);
> destination(apcupsd);           };

This is a very incomplete configuration. You missed /dev/log, userspace
processes don't log through /proc/mksg.

-- 
Sandor Geller
wildy at balabit.hu


More information about the syslog-ng mailing list