Halog parsing of custom log format

Hello,

I have a custom log format for my HAProxy configured and want to used halog to parse the log files. I couldn’t find any way to provide my custom format to halog. Does anyone know if it is possible to parse using halog my custom log messages from /var/log/haproxy.log?

If not, is it possible to log multiple log formats in the same file (one line for my syslog server and one line to be used by halog for parsing)?

No, it’s not possible, halog has been written for the standard log formats and achieves that performance because of it.

Haproxy is flexibale in this regard, but it also isn’t the software writing to files; that’s your syslog daemon. So you’d have to configure both haproxy and your syslog daemon to achieve this.