Hi Bajaj, Abhinav,

Could you share the start-command of jobmanager and taskmanager. If it is
started correctly, we
will have a the following jvm options.

-Dlog.file=/path/of/taskmanager.log
-Dlogback.configurationFile=file:///path/of/logback.xml



Best,
Yang

Bajaj, Abhinav <abhinav.ba...@here.com> 于2020年1月4日周六 上午7:23写道:

> Hi,
>
>
>
> I am investigating a logging issue with Flink.
>
>
>
> *Setup*
>
>    - Using Flink-1.7.1 using logback as suggested in Flink documentation
>    here
>    
> <https://ci.apache.org/projects/flink/flink-docs-stable/dev/best_practices.html#use-logback-when-running-flink-on-a-cluster>
>    .
>    - Submitting the Flink job from the Flink dashboard.
>
>
>
> *Observations*
>
>    - Logs from main method(outside of job graph) do not show up in
>    jobmanager logs.
>    - Logs from the operators like map or custom operators do show up in
>    the taskmanager logs.
>    - Logs from main method do show up in jobmanager logs when using log4j
>    in place of logback.
>
>
>
> Has anyone else noticed similar behavior or is this a known issue with
> logback integration in Flink?
>
> Any suggestions on potential workaround or fix?
>
>
>
> Appreciate your time and help.
>
>
>
> ~ Abhinav Bajaj
>
>
>

Reply via email to