# Traefik access log

**URL:** <https://community.traefik.io/t/traefik-access-log/25245>\
**Category:** Traefik v3 (latest)\
**Tags:** kubernetes-ingress\
**Created:** [November 21, 2024, 5:53am UTC](https://community.traefik.io/t/traefik-access-log/25245 "2024-11-21T05:53:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ForcemCS](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/forcemcs/32/9133_2.png) [@ForcemCS](https://community.traefik.io/u/ForcemCS)\
**Post date:** [November 21, 2024, 5:53am UTC](https://community.traefik.io/t/traefik-access-log/25245/1 "2024-11-21T05:53:36Z")

</div>

The traefik access log log format is as follows

```auto
10.42.0.1 - - [21/Nov/2024:05:32:22 +0000] ‘GET /s10001 HTTP/1.1’ 400 34 ‘-’ ‘-’ 697 ‘roh5-game-roh5-server-10001-ingress-10003-server-roh5- xxxxxxx-cn-s10001@kubernetes’ “http://10.42.0.57:10003” 1ms

```

But I want the same format as the nginx access log, as follows

```auto
61.170.232.24 - - [21/Nov/2024:13:47:13 +0800] ‘GET /s10001 HTTP/2.0’ 400 34 ‘-’ ‘Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ( KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0’ 489 0.001 [roh5-game-roh5-server-svc-10001-10003] [] 10.1.196.29:10003 34 0.001 400 7fbb610c74b0c7635bbe7d189c61a46f

```

How do I change the traefik config file?

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [November 21, 2024, 6:46am UTC](https://community.traefik.io/t/traefik-access-log/25245/2 "2024-11-21T06:46:23Z")

</div>

Traefik provides CLF (Common-Log-Format, [Wikipedia](https://en.m.wikipedia.org/wiki/Common_Log_Format)) or JSON log format ([doc](https://doc.traefik.io/traefik/observability/access-logs/#format)).

If you want nginx extended CLF, you may be able to use Traefik JSON format with a external transformation step with something like `jq` in between, if all required variables are present.
