When a program sends (unfortunaly) a line with '\n' such as "part1\npart2", syslog-ng writes part1 in appropriate destination but when the next message is received, it is "polluted" by part2 of previous message and it losts its facility/priority. For sample: [root@peducasse log]# logger -psyslog.info "Test #1
Test #2" [root@peducasse log]# logger -psyslog.info "Test #3"
condensed strace output: read(3, "<46>Apr 25 17:02:53 jerome: Test #1\nTest #2", 2048) = 43 write(4, "Apr 25 17:02:53 peducasse [syslog.info] jerome jerome: Test #1\n", 63) = 63 read(3, "<46>Apr 25 17:02:56 jerome: Test #3", 2041) = 35 write(14, "Apr 25 17:02:56 peducasse Test #2<46>Apr 25 17:02:56 jerome: Test #3\n", 69) = 69 Thanks for any help. -- Jerome Peducasse
participants (1)
-
Jerome Peducasse