Skip to content

Buffering should be disabled when using UDP #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kgs opened this issue Jun 4, 2017 · 3 comments
Open

Buffering should be disabled when using UDP #26

kgs opened this issue Jun 4, 2017 · 3 comments

Comments

@kgs
Copy link

kgs commented Jun 4, 2017

When udp is enabled then buffering does not make sense (if I understand RFC correctly: https://tools.ietf.org/html/rfc5426#section-3.1).

Multiple log messages are merged on syslog side, since UDP syslog server treats them as one line:

Jun 4 11:27:17 localhost nginx[47871]: Hello World!#12<135>Jun 04 11:27:19 localhost nginx[47871]: Hello World!

@flisky
Copy link

flisky commented Jun 4, 2017

FYI, the problem could be fixed using framing in rsyslog, and usually a newline does it.

@flisky
Copy link

flisky commented Jun 4, 2017

Ah, I see the LF char. Turning off EscapeControlCharactersOnReceive option may help.

@FMLS
Copy link

FMLS commented Jul 6, 2017

I set flush_limit to 1, then I want to send one syslog message per datagram, but it turn to error result: logs are merged and send. In nginx log, I see that: "flush lock acquired .... no need to flush:0 .... flush lock released", many lines liks that, after that, "start _do_flush......" , Please help, thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants