Thanks for the information.
There is no configuration option to disable automatic sequenceID generation into SDATA or to disable using SDATA when syslog() destination or the "syslog-protocol" flag is used.
In case of local sources, like file(), unix-dgram() or the system() source (except where systemd is used) the sequenceID is automatically added, as stated before.
I've checked for workarounds, but haven't found a good one:
- unset() rewrite rule won't work, as in this case the sequenceID is generated on destination side,
- using a custom RFC5424-like template(), where the SDATA is replaced with a literal "-" won't work either, as in case of syslog() or network(... flags(syslog-protocol)), the "frame" of RFC5424 is automatically
added to the outgoing message.
The only way this can be done if a simple TCP destination is used, with the above mentioned custom RFC5424-like template, but the source on the server side has to be changed to a simple TCP source as well.
I've found some discussion about the future of SEQNUM, which is slightly connected to this:
Just out of interest, can you explain to me what kind of problem is caused by sequenceId on server side?
Maybe we can filter, or opt out the sequenceId on the server side (as syslog() source on the server side will parse it, there it can be removed with a rewrite rule).
Regards,
Gabor
CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe.
Configuration is simple with default config only I have added a destination syslog () to send to UDP remote host listening on 514 port
Hello,
Well, I don't know a quick solution (e.g. a config option to disable this), I'll try to help you.
Can you share your configuration, please?
Regards,
Gabor
CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe.
Hello
Trying to send logs to remote syslog server in RFC 5424 format. The STRUCTURE_DATA should be set to "-".
What is the way to the this value to "-"
Currently it is coming as [meta sequenceId="21"]. I am using Openwrt and the syslog version is 3.24
Thank you
______________________________________________________________________________
Member info:
https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation:
http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ:
http://www.balabit.com/wiki/syslog-ng-faq