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

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

[~chesnay]

when submit a job by shell command like: flink run -Djob.name=test. However, 
the startup parameters of the TM or JM process do not have -D job.name=test. so 
{{$\{sys:job.name}}} does not work

Is there something wrong?

> 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