hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ying Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-2255) YARN Audit logging not added to log4j.properties
Date Thu, 01 Sep 2016 07:11:21 GMT

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

Ying Zhang commented on YARN-2255:
----------------------------------

Hi [~varun_saxena], do we have any update on this one?
I have tried to add the following to yarn log4j.properties, looking like working. It is similar
with this comment. (https://issues.apache.org/jira/browse/MAPREDUCE-2655?focusedCommentId=13084191&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13084191)

{code:borderStyle=solid}
#
# ResourceManager audit logging
#
rm.audit.logger=INFO,RMAUDIT
log4j.logger.org.apache.hadoop.yarn.server.resourcemanager.RMAuditLogger=${rm.audit.logger}
log4j.additivity.org.apache.hadoop.yarn.server.resourcemanager.RMAuditLogger=false
log4j.appender.RMAUDIT=org.apache.log4j.DailyRollingFileAppender
log4j.appender.RMAUDIT.File=${yarn.log.dir}/rm-audit.log
log4j.appender.RMAUDIT.layout=org.apache.log4j.PatternLayout
log4j.appender.RMAUDIT.layout.ConversionPattern=%d{ISO8601} %p %c{2}: %m%n
log4j.appender.RMAUDIT.DatePattern=.yyyy-MM-dd

#
# NodeManager audit logging
#
nm.audit.logger=INFO,NMAUDIT
log4j.logger.org.apache.hadoop.yarn.server.nodemanager.NMAuditLogger=${nm.audit.logger}
log4j.additivity.org.apache.hadoop.yarn.server.nodemanager.NMAuditLogger=false
log4j.appender.NMAUDIT=org.apache.log4j.DailyRollingFileAppender
log4j.appender.NMAUDIT.File=${yarn.log.dir}/nm-audit.log
log4j.appender.NMAUDIT.layout=org.apache.log4j.PatternLayout
log4j.appender.NMAUDIT.layout.ConversionPattern=%d{ISO8601}%p %c{2}: %m%n
log4j.appender.NMAUDIT.DatePattern=.yyyy-MM-dd
{code}

> YARN Audit logging not added to log4j.properties
> ------------------------------------------------
>
>                 Key: YARN-2255
>                 URL: https://issues.apache.org/jira/browse/YARN-2255
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 2.4.0
>            Reporter: Varun Saxena
>            Assignee: Varun Saxena
>
> log4j.properties file which is part of the hadoop package, doesnt have YARN Audit logging
tied to it. This leads to audit logs getting generated in normal log files. Audit logs should
be generated in a separate log file



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message