HAProxy community

Multiple Log Messages for the same Request to the same Syslog-Server


#1

Hey there guys,

I’m trying to find a way to send multiple log messages (I’m thinking 2 right now) for the same Request to the same Syslog-Server. The reason I want to do this is because I need to print out the http body and all the other metainformation (ClientIP and all that default http-log-format stuff) in the log. This way, though, the log is way too overloaded.

The way I want my log files to look like is given:
2017-10-06 13:27:06 Local0.Info PID metainformation
2017-10-06 13:27:06 Local0.Info SAMEPID http-body-comes-here

The way it looks right for me right now:
2017-10-06 13:27:06 Local0.Info PID metainformation, http-body-comes-here

The logs already have all the information I need, so this is just an idea from a cosmetic point of view.

Cheers,
DL


#2

“Too overloaded” sounds like a problem you’d wanna solve in your syslog stack. Why not log in a structured format for example?

Multiple syslog messages per request is not possible with haproxy and I doubt it ever will be.