# Change logging format in Kong

**URL:** <https://discuss.konghq.com/t/change-logging-format-in-kong/2562>\
**Category:** General\
**Created:** [January 4, 2019, 3:26am UTC](https://discuss.konghq.com/t/change-logging-format-in-kong/2562 "2019-01-04T03:26:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![newbie](https://avatars.discourse-cdn.com/v4/letter/n/dc4da7/32.png) [@newbie](https://discuss.konghq.com/u/newbie)\
**Post date:** [January 4, 2019, 3:26am UTC](https://discuss.konghq.com/t/change-logging-format-in-kong/2562/1 "2019-01-04T03:26:13Z")

</div>

Hello everyone,

I’m new to Kong concept and need to change the logging format of Kong. For example, I need to customize the IP from the remote instances. I already tried to use X-Forwarded-For but I am still seeing load balancer IP. I am not seeing the IP on where the api call initiated.With that, I’d like to know how can it be achieved. Thank you so much in advance!

BTW, Kong is installed as ecs container.

---

<div class="post-metadata">

**Author:** ![thibaultcha](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/thibaultcha/32/340_2.png) [@thibaultcha](https://discuss.konghq.com/u/thibaultcha)\
**Post date:** [January 4, 2019, 4:43pm UTC](https://discuss.konghq.com/t/change-logging-format-in-kong/2562/2 "2019-01-04T16:43:15Z")

</div>

Hi,

Please have a read at:

> [@How to Forward Client's request IP](https://discuss.konghq.com/t/how-to-forward-clients-request-ip/384/2):
>
> Hi, This is a typical behavior/drawback of many reverse-proxies and load-balancers. Luckily for you, and as one would expect, there exist ways to circumvent them! Retrieving the client IP in your API First and foremost, Kong will set the [X-Forwarded-For](https://en.wikipedia.org/wiki/X-Forwarded-For) header for you since 0.11.0. You can use its value in your upstream services to retrieve the client IP. This is, I believe, the answer you are looking for. But let’s take a deeper dive here, because there are other important areas around this …

---

<div class="post-metadata">

**Author:** ![newbie](https://avatars.discourse-cdn.com/v4/letter/n/dc4da7/32.png) [@newbie](https://discuss.konghq.com/u/newbie)\
**Post date:** [January 7, 2019, 1:09am UTC](https://discuss.konghq.com/t/change-logging-format-in-kong/2562/3 "2019-01-07T01:09:21Z")

</div>

Thanks @thibaultcha. I’ll take a look at it. BTW, now we are getting IP of Akamai and not Load balancer
