[syslog-ng] a log message is output in the two line

Hirose, Shinsaku hirose.shinsaku at jp.fujitsu.com
Fri Jun 24 16:10:27 CEST 2016


Hello, all,

I use syslog-ng-3.2.5-4.el6.x86_64 on Centos6.
I got it from eple epel repository.

I am troubled in how to use the source file driver.
The touble is that a log message is output in the two lines on remote syslog server.

How to reproduce is followings.

1. Prepare two hosts running syslog-ng.

  Host_A configuration is followings.
  ----------------------------------------
  source test {
    file("/tmp/a.log");
  };
  destination d_remote { udp("192.168.0.2"); };
  log { source(test); destination(d_remote); };
  ----------------------------------------

  Host_B(192.168.0.2) configuration is defaults.

2.Execute following command on Host_A.

  $ seq 8193 | (xargs -i echo -n "a";echo "") >> /tmp/a.log

3.Check the log on Host_B.

  As the result, a log message is output in the two lines on Host_B.

  One line is following. The num of "a" is 8192.
  aaaaaaaaaaaaa....... 

  The other line is following. The num of "a" is 1.
  a

I hope a log message is output in the one line on Host_B.
Is my hope readily achievable?

Please advise me.


More information about the syslog-ng mailing list