[syslog-ng] Invalid frame header; header=''

Balint Kovacs balint.kovacs at balabit.com
Wed Oct 14 17:31:27 CEST 2009


jnordwick wrote:
> I want the new syslog style messages. I'm writing some Java code to  
> send messages to syslog and I need the new format. Is there somewhere  
> that the transport protocol is described? It will also be over UDP  
> too. TCP was just for a little test.
>
> Thanks
> -j
>   
AFAIK (Bazsi, pls correct if I'm wrong) the format is described in
RFC5425 (http://tools.ietf.org/html/rfc5425) Section 4.3 "Sending data".
The RFC concerns TLS transport, but syslog-ng implements the same
transport format over TCP as well.

If you're comfortable with reading C code, you can also take a look at
how syslog-ng does this in logproto.c, around the function
log_proto_framed_client_post().

Best Regards,
Balint

-- 
Balint Kovacs
Security Engineer
balint.kovacs at balabit.com

BalaBit IT Security
Bártfai str. 54.
H-1115 Budapest
Phone +36 1 371 0540
Fax +36 1 208 0875

The content of this message, including any attachments is confidential
and under legal protection, it may not be published or publicly
disclosed. The message may be used only by the addressee and those
authorized by the addressee to do so. If you are not the addressee of
this message, please notify the sender of the message by phone or
e-mail, and delete the message and its attachments from your system. If
you are not the addressee, you are forbidden to copy, save, disclose, or
abuse the message or any attachments.



More information about the syslog-ng mailing list