jinhai created FLINK-16793:

             Summary: Add jobName to log4j ConversionPattern
                 Key: FLINK-16793
                 URL: https://issues.apache.org/jira/browse/FLINK-16793
             Project: Flink
          Issue Type: Improvement
          Components: Deployment / YARN
    Affects Versions: 1.10.0
            Reporter: jinhai
             Fix For: 1.11.0

Add jobName to log4j, so we can search log by jobName on ELK.

We can submit a job by add shell parameter:-yDjob.name=flink-test.

And add ${job.name} to log4j pattern: 
log4j.appender.sls.layout.ConversionPattern=%d\{yyyy-MM-dd HH:mm:ss,SSS} 
${job.name} %-5p %-60c %x - %m%n

Then we can seach log by jobName on ELK or Graylog

This message was sent by Atlassian Jira

Reply via email to