Skip to content
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

SyslogEncryptedTcpSender MessageLength is not correct #34

Open
bharathreddyi opened this issue Jun 26, 2019 · 1 comment
Open

SyslogEncryptedTcpSender MessageLength is not correct #34

bharathreddyi opened this issue Jun 26, 2019 · 1 comment

Comments

@bharathreddyi
Copy link

bharathreddyi commented Jun 26, 2019

Hi,

Below is the message received from SyslogNet library for SyslogEncryptedTcpSender.

108 <54>1 2019-06-26T09:48:06.979058+05:30 MD1WU1QC Source_TCP TestRfc5424 TestRfc5424 - This is 5424 Message

If you see above message actually the Message length is 106 but it is sent as 108 which is incorrect.
Assembly Version Used : 1.0.3.3.

@Alex18947
Copy link

Alex18947 commented Aug 21, 2019

Hi,
I think it might be correct. As per RFC 5424 the message part is encoded in UTF8 and 3 UTF preamble bytes are included before the message text. You don't see them, but they are there ;). So the message has 105 characters (not 106) + 3 = 108.

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

2 participants