You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Xingxing Di (Jira)" <ji...@apache.org> on 2020/04/26 04:14:00 UTC
[jira] [Comment Edited] (FLINK-16478) add restApi to modify
loglevel
[ https://issues.apache.org/jira/browse/FLINK-16478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17092471#comment-17092471 ]
Xingxing Di edited comment on FLINK-16478 at 4/26/20, 4:13 AM:
---------------------------------------------------------------
Hi [~xiaodao] , [~felixzheng], i am glad to see this issue, and i created an duplicated issue
[FLINK-17382|https://issues.apache.org/jira/projects/FLINK/issues/FLINK-17382] earlier.
We've already added a rest api to support *log4j* dynamic log level setting in flink 1.9 , i'm also interested in working on this issue.
The query parameter is :
{code:java}
?params=jobManager|root|debug|30|info{code}
*Which means:* Change job manager's "root" logger's level to "debug", and after 30 seconds set it back to "info".
*More details:*
type : jobManager or taskManager
loggerName : the logger name
level : ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL ,OFF
expireSecs : define a timer to set log level to the resetLevel after specific seconds
resetLevel : the log level to set back, default is 'info'
Here is the code [1.9-log4j-level-setting|https://github.com/dixingxing0/flink/tree/1.9-log4j-level-setting].
It's only a simple version to support log4j, as the design by [~xiaodao], it should also work on logback and log4j2.
was (Author: dixingxing@yeah.net):
Hi [~xiaodao] , [~felixzheng], i am glad to see this issue, and i created an duplicated issue earlier ([https://issues.apache.org/jira/projects/FLINK/issues/FLINK-17382])
We've already added a rest api to support *log4j* dynamic log level setting in flink 1.9 , i'm also interested in working on this issue.
The query parameter is :
{code:java}
?params=jobManager|root|debug|30|info{code}
*Which means:* Change job manager's "root" logger's level to "debug", and after 30 seconds set it back to "info".
*More details:*
type : jobManager or taskManager
loggerName : the logger name
level : ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL ,OFF
expireSecs : define a timer to set log level to the resetLevel after specific seconds
resetLevel : the log level to set back, default is 'info'
Here is the code: [https://github.com/dixingxing0/flink/tree/1.9-log4j-level-setting]
It's only a simple version to support log4j, as the design by [~xiaodao], it should also work on logback and log4j2.
> add restApi to modify loglevel
> -------------------------------
>
> Key: FLINK-16478
> URL: https://issues.apache.org/jira/browse/FLINK-16478
> Project: Flink
> Issue Type: Improvement
> Components: Runtime / REST
> Reporter: xiaodao
> Priority: Minor
>
> sometimes we may need to change loglevel to get more information to resolved bug, now we need to stop it and modify conf/log4j.properties and resubmit it ,i think it's better to add rest api to modify loglevel.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)