[syslog-ng]Problems in Solaris 2.7 with truncated message
Hernan Cortez
syslog-ng@lists.balabit.hu
Wed, 20 Oct 2004 14:26:10 -0300
Opss. Wrong subject. excuse me.
Hi, I'm trying to install syslog-ng 1.6.4 in Solaris 2.7.
The binaries install and works OK, but the messages appear to be truncated.
By example the following sentece:
destination d_mysql {
file("/var/log/dblog/fulllog.$YEAR.$MONTH.$DAY.$HOUR.$MIN.$SEC"
template("INSERT INTO logs (host, facility, priority, level, tag,
date, time, program, msg)
VALUES ( '$HOST', '$FACILITY',
'$PRIORITY','$LEVEL', '$TAG','$YEAR-$MONTH-$DAY','$HOUR:$MIN:$SEC',
'$PROGRAM', \n '$MESSAGE' );\n")
owner(root) group(root) perm(0600)
dir_perm(0700) create_dirs(yes)
template-escape(yes));
};
In the log it appears without the ");\n" (last 3 characters), so the
insert in the mysql doesn't work. I do the test in with the following
destination:
template("-$MSG--")
In this case the last character "-" doesn't appear.
Any idea?
Does syslog have a buffer problem?
Thanks in advance,
HC