log4j.properties 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # Copyright 2011 The Apache Software Foundation
  2. #
  3. # Licensed to the Apache Software Foundation (ASF) under one
  4. # or more contributor license agreements. See the NOTICE file
  5. # distributed with this work for additional information
  6. # regarding copyright ownership. The ASF licenses this file
  7. # to you under the Apache License, Version 2.0 (the
  8. # "License"); you may not use this file except in compliance
  9. # with the License. You may obtain a copy of the License at
  10. #
  11. # http://www.apache.org/licenses/LICENSE-2.0
  12. #
  13. # Unless required by applicable law or agreed to in writing, software
  14. # distributed under the License is distributed on an "AS IS" BASIS,
  15. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. # See the License for the specific language governing permissions and
  17. # limitations under the License.
  18. # Define some default values that can be overridden by system properties
  19. # Root logger option
  20. ambari.root.dir=/
  21. ambari.log.dir=${ambari.root.dir}/var/log/ambari-server
  22. ambari.log.file=ambari-server.log
  23. ambari.config-changes.file=ambari-config-changes.log
  24. ambari.alerts.file=ambari-alerts.log
  25. ambari.eclipselink.file=ambari-eclipselink.log
  26. ambari.audit.file=ambari-audit.log
  27. ambari.dbcheck.file=ambari-server-check-database.log
  28. log4j.rootLogger=INFO,file
  29. # Direct log messages to a log file
  30. log4j.appender.file=org.apache.log4j.RollingFileAppender
  31. log4j.appender.file.File=${ambari.log.dir}/${ambari.log.file}
  32. log4j.appender.file.MaxFileSize=80MB
  33. log4j.appender.file.MaxBackupIndex=60
  34. log4j.appender.file.layout=org.apache.log4j.PatternLayout
  35. log4j.appender.file.layout.ConversionPattern=%d{DATE} %5p [%t] %c{1}:%L - %m%n
  36. # Log config changes
  37. log4j.logger.configchange=INFO,configchange
  38. log4j.additivity.configchange=false
  39. log4j.appender.configchange=org.apache.log4j.FileAppender
  40. log4j.appender.configchange.File=${ambari.log.dir}/${ambari.config-changes.file}
  41. log4j.appender.configchange.layout=org.apache.log4j.PatternLayout
  42. log4j.appender.configchange.layout.ConversionPattern=%d{ISO8601} %5p - %m%n
  43. # Log alert state changes
  44. log4j.logger.alerts=INFO,alerts
  45. log4j.additivity.alerts=false
  46. log4j.appender.alerts=org.apache.log4j.FileAppender
  47. log4j.appender.alerts.File=${ambari.log.dir}/${ambari.alerts.file}
  48. log4j.appender.alerts.layout=org.apache.log4j.PatternLayout
  49. log4j.appender.alerts.layout.ConversionPattern=%d{ISO8601} %m%n
  50. # Log database check process
  51. log4j.logger.org.apache.ambari.server.checks.CheckDatabaseHelper=INFO, dbcheck
  52. log4j.additivity.org.apache.ambari.server.checks.CheckDatabaseHelper=false
  53. log4j.appender.dbcheck=org.apache.log4j.FileAppender
  54. log4j.appender.dbcheck.File=${ambari.log.dir}/${ambari.dbcheck.file}
  55. log4j.appender.dbcheck.layout=org.apache.log4j.PatternLayout
  56. log4j.appender.dbcheck.layout.ConversionPattern=%d{ISO8601} %5p - %m%n
  57. # EclipsLink -> slf4j bridge
  58. log4j.logger.eclipselink=TRACE,eclipselink
  59. log4j.additivity.eclipselink=false
  60. log4j.appender.eclipselink=org.apache.log4j.RollingFileAppender
  61. log4j.appender.eclipselink.File=${ambari.log.dir}/${ambari.eclipselink.file}
  62. log4j.appender.eclipselink.MaxFileSize=50MB
  63. log4j.appender.eclipselink.MaxBackupIndex=10
  64. log4j.appender.eclipselink.layout=org.apache.log4j.PatternLayout
  65. log4j.appender.eclipselink.layout.ConversionPattern=%m%n
  66. # Audit logging
  67. log4j.logger.audit=INFO,audit
  68. log4j.additivity.audit=false
  69. log4j.appender.audit=org.apache.log4j.rolling.RollingFileAppender
  70. log4j.appender.audit.rollingPolicy=org.apache.log4j.rolling.FixedWindowRollingPolicy
  71. log4j.appender.audit.rollingPolicy.ActiveFileName=${ambari.log.dir}/${ambari.audit.file}
  72. log4j.appender.audit.rollingPolicy.FileNamePattern=${ambari.log.dir}/${ambari.audit.file}-%i.log.gz
  73. log4j.appender.audit.rollingPolicy.maxIndex=13
  74. log4j.appender.audit.triggeringPolicy=org.apache.log4j.rolling.SizeBasedTriggeringPolicy
  75. log4j.appender.audit.triggeringPolicy.maxFileSize=50000000
  76. log4j.appender.audit.layout=org.apache.log4j.PatternLayout
  77. log4j.appender.audit.layout.ConversionPattern=%m%n
  78. log4j.logger.org.apache.hadoop.yarn.client=WARN
  79. log4j.logger.org.apache.slider.common.tools.SliderUtils=WARN
  80. log4j.logger.org.apache.ambari.server.security.authorization=WARN
  81. log4j.logger.org.apache.ambari.server.security.authorization.AuthorizationHelper=INFO
  82. log4j.logger.org.apache.ambari.server.security.authorization.AmbariLdapBindAuthenticator=INFO