How to set log level using Flink Docker Image

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to set log level using Flink Docker Image

Guilherme Nobre
Hi everyone,

I have a Flink Cluster created from Flink's Docker Image. I'm trying to set log level to DEBUG but couldn't find how. I know where logback configuration files are as per documentation:

"The conf directory contains a logback.xml file which can be modified and is used if Flink is started outside of an IDE."

However I'm not sure how to do that for a running Flink Cluster on Kubernetes.

Thanks,
G

Reply | Threaded
Open this post in threaded view
|

Re: How to set log level using Flink Docker Image

Dominik Wosiński
You can for example mount the conf directory using docker volumes. 

You would need to have logback.xml and then mount it as conf/logback.xml inside the image. Locally You could do this using docker-compose.yml, for mounting volumes in kubernetes refer to this page: https://kubernetes.io/docs/concepts/storage/volumes/

Regards.

Czw., 21.06.2018, 18:42 użytkownik Guilherme Nobre <[hidden email]> napisał:
Hi everyone,

I have a Flink Cluster created from Flink's Docker Image. I'm trying to set log level to DEBUG but couldn't find how. I know where logback configuration files are as per documentation:

"The conf directory contains a logback.xml file which can be modified and is used if Flink is started outside of an IDE."

However I'm not sure how to do that for a running Flink Cluster on Kubernetes.

Thanks,
G

Reply | Threaded
Open this post in threaded view
|

Re: How to set log level using Flink Docker Image

Guilherme Nobre
Thanks, that sounds reasonable. I'll try it out tomorrow :)

Cheers,
G

On Thu, Jun 21, 2018 at 6:56 PM Dominik Wosiński <[hidden email]> wrote:
You can for example mount the conf directory using docker volumes. 

You would need to have logback.xml and then mount it as conf/logback.xml inside the image. Locally You could do this using docker-compose.yml, for mounting volumes in kubernetes refer to this page: https://kubernetes.io/docs/concepts/storage/volumes/

Regards.

Czw., 21.06.2018, 18:42 użytkownik Guilherme Nobre <[hidden email]> napisał:
Hi everyone,

I have a Flink Cluster created from Flink's Docker Image. I'm trying to set log level to DEBUG but couldn't find how. I know where logback configuration files are as per documentation:

"The conf directory contains a logback.xml file which can be modified and is used if Flink is started outside of an IDE."

However I'm not sure how to do that for a running Flink Cluster on Kubernetes.

Thanks,
G