in_syslog has two parsing logics:
- If a
format parameter is provided, then it parses the leading and uses the provided format for the rest of the message.
- If no
format parameter is provided, it uses the default syslog message format, which also starts with <pri>.
This means that in_syslog barfs if the incoming message does not start with <pri>. This may happen if the user has custom syslog format that does not start with <pri>.
Should in_syslog support this? Or should it be in_forward?
in_syslog has two parsing logics:
formatparameter is provided, then it parses the leading and uses the provided format for the rest of the message.formatparameter is provided, it uses the default syslog message format, which also starts with <pri>.This means that in_syslog barfs if the incoming message does not start with <pri>. This may happen if the user has custom syslog format that does not start with <pri>.
Should in_syslog support this? Or should it be in_forward?