Capture X-Forwarded-For with Audit Plugin

We have traffic coming by way of a load balancer that is able to pass X-Forwarded-For header values. Is the Audit plugin able to capture the value of this header in addition to the “ip” value captured in the audit.log file? Is there a way to configure this?

Hello @btns,
X-Forwarded-For is an HTTP header and is not something MySQL uses, nor recognizes. Because this header is for HTTP, MySQL audit log cannot log it.

1 Like