# Capture X-Forwarded-For with Audit Plugin

**URL:** <https://forums.percona.com/t/capture-x-forwarded-for-with-audit-plugin/27896>\
**Category:** Percona Server for MySQL 5.7\
**Created:** [January 19, 2024, 6:40pm UTC](https://forums.percona.com/t/capture-x-forwarded-for-with-audit-plugin/27896 "2024-01-19T18:40:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![btns](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@btns](https://forums.percona.com/u/btns)\
**Post date:** [January 19, 2024, 6:40pm UTC](https://forums.percona.com/t/capture-x-forwarded-for-with-audit-plugin/27896/1 "2024-01-19T18:40:11Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [February 20, 2024, 2:26pm UTC](https://forums.percona.com/t/capture-x-forwarded-for-with-audit-plugin/27896/2 "2024-02-20T14:26:45Z")

</div>

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.
