Traefik access log

The traefik access log log format is as follows

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

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?

Traefik provides CLF (Common-Log-Format, Wikipedia) or JSON log format (doc).

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.