Thanks Peter, not sure why it didn't occur to me to try a basic perl instead of mine! I will give that a try to make sure it isn't me :-)
Hi,
just tried to reproduce with a simple perl script:
open FILE, ">/home/peter/test.log" or die $!;
{ my $ofh = select FILE; $| = 1; select $ofh; }
while (<>)
{
chomp;
print FILE "incoming: $_\n";
};
Now, when sending log input to syslog-ng via tcp(), each line I type immediatelly shows up in the output log file.
=> can not reproduce. That is, with version 3.3.1.
PeterDipl.-Inf. Peter Eisenlohr
Geschäftsbereich Logistik
INFORM GmbH, Pascalstr. 23, 52076 Aachen, Germany
Telefon: (+49) 2408 9456-6000
E-Mail: peter.eisenlohr@inform-software.com, Web: http://www.inform-software.com
INFORM Institut fur Operations Research und Management GmbH
Registered AmtsG Aachen HRB1144 Gfhr. Adrian Weiler
>>> Clayton Dukes destination d_logzilla { 13.01.12 16.03 Uhr >>>program("/var/www/logzilla/scripts/db_insert.pl"template("$R_YEAR-$R_MONTH-$R_DAY $R_HOUR:$R_MIN:$S_SEC\t$HOST\t$PRI\t$PROGRAM\t$MSGONLY\n")template_escape(yes));
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq