You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "jules (Jira)" <ji...@apache.org> on 2022/10/20 13:10:00 UTC

[jira] [Commented] (NIFI-6310) SyslogReader does not support octet counting

    [ https://issues.apache.org/jira/browse/NIFI-6310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17621099#comment-17621099 ] 

jules commented on NIFI-6310:
-----------------------------

I am interested in solving this problem.
I agree with you [~otto].
I can't be correctly implemented in a reader/recordReader. (because ListenTCP doens't know how to split the incoming data if the TCP session is very long)
It probably should be added to ListenSyslog. (it could even be an option in ListenTCP, either split on new line or octet counting)

note: the attached patch only works for messages with a length between 100 and 9999 (due to the buffer of 4bytes)

> SyslogReader does not support octet counting
> --------------------------------------------
>
>                 Key: NIFI-6310
>                 URL: https://issues.apache.org/jira/browse/NIFI-6310
>             Project: Apache NiFi
>          Issue Type: New Feature
>    Affects Versions: 1.9.2
>            Reporter: Anand Parmar
>            Priority: Minor
>         Attachments: NIFI-6310.patch
>
>
> If a syslog is sent in a octet counted format, then the SyslogReader cannot read it. SyslogReader assumes that the syslog is newline delimited.
> Octet counting is described in https://tools.ietf.org/html/rfc6587#section-3.4.1



--
This message was sent by Atlassian Jira
(v8.20.10#820010)