Re: Flink Standalone cluster - logging problem
Posted by
Gary Yao-4 on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Flink-Standalone-cluster-logging-problem-tp25977p26039.html
Hi,
Are you logging from your own operator implementations, and you expect these
log messages to end up in a file prefixed with XYZ-? If that is the case,
modifying log4j-cli.properties will not be expedient as I wrote earlier.
You should modify the log4j.properties on all hosts that are running the
JobManager (JM) and TaskManagers (TM). Consequently, the log files can only be
found on the hosts that are running the JM and TMs.
Furthermore, I see a problem with the following line in your log4j
configuration:
log4j.appender.file2.file=XYZ-${log.file}
Here, ${log.file} can be an absolute path, which means you would end up
prefixing the whole path instead of just the filename.
If this does not help, please share a minimum working example with us.
Best,
Gary