Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to log request_body with traefik?

How to config traefik to log request_body in logfile?

my config file is as below:

traefik.toml 

logLevel="INFO"

defaultEntryPoints = ["http", "https"]

[accessLog]
format = "json"
like image 279
Hillbun Ng Avatar asked Dec 24 '18 10:12

Hillbun Ng


1 Answers

Traefik doesn't support this feature.

And what is maybe even more important, it was decided to not support this feature. You can check the reasons here: https://github.com/containous/traefik/issues/6704

like image 123
dmaixner Avatar answered Nov 07 '22 06:11

dmaixner