[
https://issues.apache.org/jira/browse/IMPALA-9541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17097584#comment-17097584
]
shajini thayasingh edited comment on IMPALA-9541 at 5/5/20, 4:16 PM:
---------------------------------------------------------------------
[~stigahuang] here is the Intro I have put together. Please verify it for
technical accuracy.
_{color:#de350b}*"Changing Log Levels Dynamically*{color}_
_{color:#de350b}For debugging purposes you may be adjusting the logging
configuration for Catalog and impalad servers. This required restarting the
services. Impala now supports adjusting the log levels dynamically without the
need to restart the server. There is now a */log_level* tab in the debug page
of all Impala servers. By default this page displays the current running log
level of the service. However you can change the *vlog/ log4j* levels to any
supported levels of logging. You can select the log level using the{color}_
{color:#de350b}*LOG LEVEL*{color} _{color:#de350b}drop down box. Also you have
an option to restore the log levels to their original configuration by using
the{color}_ *{color:#de350b}RESET{color}* _{color:#de350b}button."
{color}_ {color:#de350b}Here is the format of a Glog{color}
{color:#de350b}${level}${month}${day} HH:MM:SS.${us} ${thread-id}
${source-file}:${line}] ${query-id}] ${message}{color}
{color:#de350b}Where{color}
{color:#de350b}${level} — Log Levels.{color}
{color:#de350b}${month}${day} — Month and Date.{color}
{color:#de350b}HH:MM:SS — Hours, Minutes, Seconds.{color}
{color:#de350b}${us} — microseconds{color}
{color:#de350b}${thread-id} — PID/TID of the process/thread.{color}
{color:#de350b}${source-file}:${line}] — File name and line number.{color}
{color:#de350b}${query-id}] — an unique id for each and every query that is
run in Impala{color}
{color:#de350b}${message} — Actual user-specified log message.{color}
was (Author: shajini):
[~stigahuang] here is the Intro I have put together. Please verify it for
technical accuracy.
_{color:#de350b}*"Changing Log Levels Dynamically*{color}_
_{color:#de350b}For debugging purposes you may be adjusting the logging
configuration for Catalog and impalad servers. This required restarting the
services. Impala now supports adjusting the log levels dynamically without the
need to restart the server. There is now a */log_level* tab in the debug page
of all Impala servers. By default this page displays the current running log
level of the service. However you can change the *vlog/ log4j* levels to any
supported levels of logging. You can select the log level using the{color}_
{color:#de350b}*LOG LEVEL*{color} _{color:#de350b}drop down box. Also you have
an option to restore the log levels to their original configuration by using
the{color}_ *{color:#de350b}RESET{color}* _{color:#de350b}button."
{color}_{color:#de350b}Here is the format of a Glog{color}
{color:#de350b}${level}${month}${day} HH:MM:SS.${us} ${thread-id}
${source-file}:${line}] ${query-id}] ${message}{color}
{color:#de350b}Where{color}
{color:#de350b}${level} — Log Levels.{color}
{color:#de350b}${month}${day} — Month and Date.{color}
{color:#de350b}HH:MM:SS — Hours, Minutes, Seconds.{color}
{color:#de350b}${us} — {color}*?????????????????*
{color:#de350b}${thread-id} — PID/TID of the process/thread.{color}
{color:#de350b}${source-file}:${line}] — File name and line number.{color}
{color:#de350b}${query-id}] — {color}*????????????????*
{color:#de350b}${message} — Actual user-specified log message.{color}
{color:#de350b}I am not sure about some of the patterns here which I had marked
with "{color}*???*{color:#de350b}". Please help me elaborate them.{color}
> Document for dynamic log level changes
> --------------------------------------
>
> Key: IMPALA-9541
> URL: https://issues.apache.org/jira/browse/IMPALA-9541
> Project: IMPALA
> Issue Type: Documentation
> Components: Docs
> Reporter: Quanlong Huang
> Assignee: shajini thayasingh
> Priority: Major
> Attachments: log_level_full.png
>
>
> There is a /log_level tab in the debug page of all Impala servers. We can use
> it to dynamically adjust log levels without restarting the server. Although
> it's a feature implemented years ago (IMPALA-4822), there are no documents
> about it. I think we should add a section in
> https://impala.apache.org/docs/build/html/topics/impala_logging.html about
> it. Also it's good to explain the pattern of each line in logs.
> For FE debugging, I usually set log level of org.apache.impala to TRACE.
> For log pattern, it's
> ${level}${month}${day} HH:MM:SS.${us} ${thread-id} ${source-file}:${line}]
> ${query-id}] ${message}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]