Simple MDC logs don't show up

Posted by Manish G on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Simple-MDC-logs-don-t-show-up-tp36759.html

Hi All,

I have some very simple MDC logs in my flink job:

MDC.put("methodName", new Object() {}.getClass().getEnclosingMethod().getName());
MDC.put("className", this.getClass().getSimpleName());

When I run flink job locally, I can see them in the application logs.
But when I run the same job on kubernetes clutter, these don't show up.

Any input here?

With regards