[ 
https://issues.apache.org/jira/browse/FLINK-16793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17071449#comment-17071449
 ] 

jinhai commented on FLINK-16793:
--------------------------------

[~chesnay] 
Modify the log4j property files and pass in the additional job.name property 
does not work on TM/JM.

> 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
>            Priority: Major
>             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
(v8.3.4#803005)

Reply via email to