<p dir="ltr">Hello,<br>
I need to send a null character at the end of a message on a tcp output...<br>
But this null is considered to be an end of string.</p>
<p dir="ltr">My use case is sending a GELF message to a graylog's tcp input.<br>
GELF message is a json syntax quite simple to comply with thanks to format-json.<br>
Graylog needs a null character at the end of a GELF message in TCP but not in UDP.</p>
<p dir="ltr">I tried many combination in the template with \x0, echo \x0, `global_definition_of_null`, etc...<br>
The matter is that null character when interpreted is an end of string, and is not written in the tcp message.<br>
I see truncated messages with ngrep.<br>
Like "a\x0b" gives "a" according to ngrep.</p>
<p dir="ltr">I did not find any option to actually write a null character.<br>
Do you have any options ?</p>
<p dir="ltr">As Graylog already have clients and librairies I belive they won't remove the need for a null character.<br>
Shall I open an issue on syslog-ng to ask for an option in templates or in format-json ?</p>
<p dir="ltr">Regards, Nicolas Fédou.</p>