[syslog-ng]No indication of facility/level on AIX 4.3.3 using syslog-ng 1.4. 14

Balazs Scheidler bazsi@balabit.hu
Tue, 23 Apr 2002 14:15:24 +0200


On Mon, Apr 22, 2002 at 02:57:20PM -0700, Nate Campi wrote:
> On Mon, Apr 22, 2002 at 02:47:11PM -0700, Nate Campi wrote:
> > On Mon, Apr 22, 2002 at 04:08:59PM -0400, Gehring, Andrew     x66132 wrote:
> > > Is there something special I need to define or configure to have
> > > syslog-ng on AIX (4.3.3) write the facility/severity as part of the
> > > messages?
> > > 
> > > On solaris we saw [facility/severity] written with each messages, but
> > > we don't get this on AIX...
> > > 
> > > Did I miss something while configuring/compiling?
> > 
> > That's syslogd on solaris doing that, actually. I would like to see
> > syslog-ng offer this as an option, too.
> 
> Man do I feed stupid, not syslogd but the syslog/openlog call on 
> solaris that writes that in.

This can be solved by the template options:

destination d_file { file("/var/log/messages" template("$DATE $HOST [$FACILITY:$LEVEL] $MSG\n"); };

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1