I am using syslog-ng to send logs to Kafka. By default, syslog-ng delimits all the data using ',' (comma). Example:
2018/04/23 01:03:22,FIELD1,FIELD2,FIELD3,FIELD4
Is there a way to change the default delimiter and add some other special character as new delimiter? I would like to have something like:
2018/04/23 01:03:22*FIELD1*FIELD2*FIELD3*FIELD4
I believe, I may have to change the source code and re-compile it, to get this to work. Need some idea, where to make that change.
Try using the replace-delimiter template function of syslog-ng