rsyslog / rsyslog-doc

documentation for the rsyslog project
Other
99 stars 249 forks source link

A directive $InputTCPSupportOctetCountedFraming has a typo in imtcp/imptcp document web page #920

Closed standby24x7 closed 3 years ago

standby24x7 commented 3 years ago

https://www.rsyslog.com/doc/v8-stable/configuration/modules/imtcp.html

In SupportOctetCountedFraming, obsolete legacy directive is called $InputTCPSupportOctetCountedFraming I think this one has a typo. The correct directive nake should be : $InputTCPServerSupportOctetCountedFraming

In plugins/imtcp/imtcp.c 853 CHKiRet(regCfSysLineHdlr2(UCHAR_CONSTANT("inputtcpserversupportoctetcountedframing"), 0, eCmdHdlrBinary,

If I configure the directive as $InputTCPSupportOctetCountedFraming into rsyslog.conf and restart the rsyslogd, then rsyslogd complains such as

"rsyslogd-3003: invalid or yet-unknown config file command "InputTCPSupportCountedFraming" - have you forgotten to load a module?

Rsyslogd accepts $InputTCPServerSupportOctetCountedFraming.

The same typo exist in imptcp web page, too. https://www.rsyslog.com/doc/v8-stable/configuration/modules/imptcp.html

Wrong: $InputPTCPSupportOctetCountedFraming Correct: $InputPTCPServerSupportOctetCountedFraming

In plugins/imptcp/imptcp.c 2620 CHKiRet(omsdRegCFSLineHdlr(UCHAR_CONSTANT("inputptcpserversupportoctetcountedframing"), 0, eCmdHdlrB inary,

rgerhards commented 3 years ago

closed by #921