On AIX 4.3.3... When I specify a template for a destination as follows: destination d_mesg { file("/var/log/messages" template("$DATE $HOST $PROGRAM [$FACILITY $LEVEL] $MSG)); }; send a logger messages logger -p user.notice -t TEST "This is a test" what ends up in the log file is: May 15 08:42:51 LEWIS TEST: [USER NOTICE] TEST: This is a test So in what I'm seeing, and I've tried a few different 'templates', is that $PROGRAM is included in $MSG. Is that the way it is supposed to be? Thanks, Andrew
On Wed, May 15, 2002 at 10:50:50AM -0400, Gehring, Andrew x66132 wrote:
On AIX 4.3.3...
When I specify a template for a destination as follows:
destination d_mesg { file("/var/log/messages" template("$DATE $HOST $PROGRAM [$FACILITY $LEVEL] $MSG)); }; send a logger messages
logger -p user.notice -t TEST "This is a test"
what ends up in the log file is:
May 15 08:42:51 LEWIS TEST: [USER NOTICE] TEST: This is a test
So in what I'm seeing, and I've tried a few different 'templates', is that $PROGRAM is included in $MSG. Is that the way it is supposed to be?
yes. $MSG always includes $PROGRAM, as it is difficult to split them. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
participants (2)
-
Balazs Scheidler
-
Gehring, Andrew x66132