This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new b7241c0d297 HDDS-13829. Audit file rollover does not happen at the
start of a new day (#9190)
b7241c0d297 is described below
commit b7241c0d2973747c8fb3be8cc238ec4c95356308
Author: Rishabh Patel <[email protected]>
AuthorDate: Wed Nov 19 12:08:38 2025 -0800
HDDS-13829. Audit file rollover does not happen at the start of a new day
(#9190)
---
.../src/main/compose/ozone-om-ha/docker-config | 4 ++--
.../dist/src/shell/conf/dn-audit-log4j2.properties | 4 ++--
.../src/shell/conf/dn-container-log4j2.properties | 26 +++++++++++-----------
.../dist/src/shell/conf/om-audit-log4j2.properties | 8 +++----
.../src/shell/conf/s3g-audit-log4j2.properties | 4 ++--
.../src/shell/conf/scm-audit-log4j2.properties | 4 ++--
.../network-tests/src/test/compose/docker-config | 4 ++--
7 files changed, 27 insertions(+), 27 deletions(-)
diff --git a/hadoop-ozone/dist/src/main/compose/ozone-om-ha/docker-config
b/hadoop-ozone/dist/src/main/compose/ozone-om-ha/docker-config
index 8d1496d126d..b8de0829c86 100644
--- a/hadoop-ozone/dist/src/main/compose/ozone-om-ha/docker-config
+++ b/hadoop-ozone/dist/src/main/compose/ozone-om-ha/docker-config
@@ -72,12 +72,12 @@
LOG4J2.PROPERTIES_appender.console.layout.pattern=%d{DEFAULT} | %-5level | %c{1}
LOG4J2.PROPERTIES_appender.rolling.type=RollingFile
LOG4J2.PROPERTIES_appender.rolling.name=RollingFile
LOG4J2.PROPERTIES_appender.rolling.fileName=${sys:hadoop.log.dir}/om-audit-${hostName}.log
-LOG4J2.PROPERTIES_appender.rolling.filePattern=${sys:hadoop.log.dir}/om-audit-${hostName}-%d{yyyy-MM-dd-HH-mm-ss}-%i.log.gz
+LOG4J2.PROPERTIES_appender.rolling.filePattern=${sys:hadoop.log.dir}/om-audit-${hostName}-%d{yyyy-MM-dd}-%i.log.gz
LOG4J2.PROPERTIES_appender.rolling.layout.type=PatternLayout
LOG4J2.PROPERTIES_appender.rolling.layout.pattern=%d{DEFAULT} | %-5level |
%c{1} | %msg | %throwable{3} %n
LOG4J2.PROPERTIES_appender.rolling.policies.type=Policies
LOG4J2.PROPERTIES_appender.rolling.policies.time.type=TimeBasedTriggeringPolicy
-LOG4J2.PROPERTIES_appender.rolling.policies.time.interval=86400
+LOG4J2.PROPERTIES_appender.rolling.policies.time.interval=1
LOG4J2.PROPERTIES_appender.rolling.policies.size.type=SizeBasedTriggeringPolicy
LOG4J2.PROPERTIES_appender.rolling.policies.size.size=64MB
LOG4J2.PROPERTIES_loggers=audit
diff --git a/hadoop-ozone/dist/src/shell/conf/dn-audit-log4j2.properties
b/hadoop-ozone/dist/src/shell/conf/dn-audit-log4j2.properties
index 447563eff07..9832fb0c1f5 100644
--- a/hadoop-ozone/dist/src/shell/conf/dn-audit-log4j2.properties
+++ b/hadoop-ozone/dist/src/shell/conf/dn-audit-log4j2.properties
@@ -71,12 +71,12 @@ appenders=rolling
appender.rolling.type=RollingFile
appender.rolling.name=RollingFile
appender.rolling.fileName =${sys:hadoop.log.dir}/dn-audit-${hostName}.log
-appender.rolling.filePattern=${sys:hadoop.log.dir}/dn-audit-${hostName}-%d{yyyy-MM-dd-HH-mm-ss}-%i.log.gz
+appender.rolling.filePattern=${sys:hadoop.log.dir}/dn-audit-${hostName}-%d{yyyy-MM-dd}-%i.log.gz
appender.rolling.layout.type=PatternLayout
appender.rolling.layout.pattern=%d{DEFAULT} | %-5level | %c{1} | %msg |
%throwable{3} %n
appender.rolling.policies.type=Policies
appender.rolling.policies.time.type=TimeBasedTriggeringPolicy
-appender.rolling.policies.time.interval=86400
+appender.rolling.policies.time.interval=1
appender.rolling.policies.size.type=SizeBasedTriggeringPolicy
appender.rolling.policies.size.size=64MB
appender.rolling.strategy.type=DefaultRolloverStrategy
diff --git a/hadoop-ozone/dist/src/shell/conf/dn-container-log4j2.properties
b/hadoop-ozone/dist/src/shell/conf/dn-container-log4j2.properties
index 7a37a3693b0..9190087752e 100644
--- a/hadoop-ozone/dist/src/shell/conf/dn-container-log4j2.properties
+++ b/hadoop-ozone/dist/src/shell/conf/dn-container-log4j2.properties
@@ -1,18 +1,18 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with this
-# work for additional information regarding copyright ownership. The ASF
-# licenses this file to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# <p>
-# http://www.apache.org/licenses/LICENSE-2.0
-# <p>
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations under
-# the License.
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
#
name=PropertiesConfig
@@ -45,7 +45,7 @@ appenders=rollingContainer
appender.rollingContainer.type=RollingFile
appender.rollingContainer.name=RollingContainer
appender.rollingContainer.fileName
=${sys:hadoop.log.dir}/dn-container-${hostName}.log
-appender.rollingContainer.filePattern=${sys:hadoop.log.dir}/dn-container-${hostName}-%d{yyyy-MM-dd-HH-mm-ss}-%i.log.gz
+appender.rollingContainer.filePattern=${sys:hadoop.log.dir}/dn-container-${hostName}-%d{yyyy-MM-dd}-%i.log.gz
appender.rollingContainer.layout.type=PatternLayout
appender.rollingContainer.layout.pattern=%d{DEFAULT} | %-5level | %msg |
%throwable{3} %n
appender.rollingContainer.policies.type=Policies
diff --git a/hadoop-ozone/dist/src/shell/conf/om-audit-log4j2.properties
b/hadoop-ozone/dist/src/shell/conf/om-audit-log4j2.properties
index 7446d30a252..bf605a6130a 100644
--- a/hadoop-ozone/dist/src/shell/conf/om-audit-log4j2.properties
+++ b/hadoop-ozone/dist/src/shell/conf/om-audit-log4j2.properties
@@ -71,12 +71,12 @@ appenders=rolling,sysrolling
appender.rolling.type=RollingFile
appender.rolling.name=RollingFile
appender.rolling.fileName =${sys:hadoop.log.dir}/om-audit-${hostName}.log
-appender.rolling.filePattern=${sys:hadoop.log.dir}/om-audit-${hostName}-%d{yyyy-MM-dd-HH-mm-ss}-%i.log.gz
+appender.rolling.filePattern=${sys:hadoop.log.dir}/om-audit-${hostName}-%d{yyyy-MM-dd}-%i.log.gz
appender.rolling.layout.type=PatternLayout
appender.rolling.layout.pattern=%d{DEFAULT} | %-5level | %c{1} | %msg |
%throwable{3} %n
appender.rolling.policies.type=Policies
appender.rolling.policies.time.type=TimeBasedTriggeringPolicy
-appender.rolling.policies.time.interval=86400
+appender.rolling.policies.time.interval=1
appender.rolling.policies.size.type=SizeBasedTriggeringPolicy
appender.rolling.policies.size.size=64MB
appender.rolling.strategy.type=DefaultRolloverStrategy
@@ -91,12 +91,12 @@ appender.rolling.strategy.delete.ifLastModified.age=30d
appender.sysrolling.type=RollingFile
appender.sysrolling.name=SysRollingFile
appender.sysrolling.fileName
=${sys:hadoop.log.dir}/om-sys-audit-${hostName}.log
-appender.sysrolling.filePattern=${sys:hadoop.log.dir}/om-sys-audit-${hostName}-%d{yyyy-MM-dd-HH-mm-ss}-%i.log.gz
+appender.sysrolling.filePattern=${sys:hadoop.log.dir}/om-sys-audit-${hostName}-%d{yyyy-MM-dd}-%i.log.gz
appender.sysrolling.layout.type=PatternLayout
appender.sysrolling.layout.pattern=%d{DEFAULT} | %-5level | %c{1} | %msg |
%throwable{3} %n
appender.sysrolling.policies.type=Policies
appender.sysrolling.policies.time.type=TimeBasedTriggeringPolicy
-appender.sysrolling.policies.time.interval=86400
+appender.sysrolling.policies.time.interval=1
appender.sysrolling.policies.size.type=SizeBasedTriggeringPolicy
appender.sysrolling.policies.size.size=64MB
appender.sysrolling.strategy.type=DefaultRolloverStrategy
diff --git a/hadoop-ozone/dist/src/shell/conf/s3g-audit-log4j2.properties
b/hadoop-ozone/dist/src/shell/conf/s3g-audit-log4j2.properties
index 788438176bb..0f4b5e08791 100644
--- a/hadoop-ozone/dist/src/shell/conf/s3g-audit-log4j2.properties
+++ b/hadoop-ozone/dist/src/shell/conf/s3g-audit-log4j2.properties
@@ -71,12 +71,12 @@ appenders=rolling
appender.rolling.type=RollingFile
appender.rolling.name=RollingFile
appender.rolling.fileName =${sys:hadoop.log.dir}/s3g-audit-${hostName}.log
-appender.rolling.filePattern=${sys:hadoop.log.dir}/s3g-audit-${hostName}-%d{yyyy-MM-dd-HH-mm-ss}-%i.log.gz
+appender.rolling.filePattern=${sys:hadoop.log.dir}/s3g-audit-${hostName}-%d{yyyy-MM-dd}-%i.log.gz
appender.rolling.layout.type=PatternLayout
appender.rolling.layout.pattern=%d{DEFAULT} | %-5level | %c{1} | %msg |
%throwable{3} %n
appender.rolling.policies.type=Policies
appender.rolling.policies.time.type=TimeBasedTriggeringPolicy
-appender.rolling.policies.time.interval=86400
+appender.rolling.policies.time.interval=1
appender.rolling.policies.size.type=SizeBasedTriggeringPolicy
appender.rolling.policies.size.size=64MB
appender.rolling.strategy.type=DefaultRolloverStrategy
diff --git a/hadoop-ozone/dist/src/shell/conf/scm-audit-log4j2.properties
b/hadoop-ozone/dist/src/shell/conf/scm-audit-log4j2.properties
index 67afecc2198..7bc1d7fe1cd 100644
--- a/hadoop-ozone/dist/src/shell/conf/scm-audit-log4j2.properties
+++ b/hadoop-ozone/dist/src/shell/conf/scm-audit-log4j2.properties
@@ -71,12 +71,12 @@ appenders=rolling
appender.rolling.type=RollingFile
appender.rolling.name=RollingFile
appender.rolling.fileName =${sys:hadoop.log.dir}/scm-audit-${hostName}.log
-appender.rolling.filePattern=${sys:hadoop.log.dir}/scm-audit-${hostName}-%d{yyyy-MM-dd-HH-mm-ss}-%i.log.gz
+appender.rolling.filePattern=${sys:hadoop.log.dir}/scm-audit-${hostName}-%d{yyyy-MM-dd}-%i.log.gz
appender.rolling.layout.type=PatternLayout
appender.rolling.layout.pattern=%d{DEFAULT} | %-5level | %c{1} | %msg |
%throwable{3} %n
appender.rolling.policies.type=Policies
appender.rolling.policies.time.type=TimeBasedTriggeringPolicy
-appender.rolling.policies.time.interval=86400
+appender.rolling.policies.time.interval=1
appender.rolling.policies.size.type=SizeBasedTriggeringPolicy
appender.rolling.policies.size.size=64MB
appender.rolling.strategy.type=DefaultRolloverStrategy
diff --git
a/hadoop-ozone/fault-injection-test/network-tests/src/test/compose/docker-config
b/hadoop-ozone/fault-injection-test/network-tests/src/test/compose/docker-config
index f2f0067c29c..54f0d434960 100644
---
a/hadoop-ozone/fault-injection-test/network-tests/src/test/compose/docker-config
+++
b/hadoop-ozone/fault-injection-test/network-tests/src/test/compose/docker-config
@@ -58,12 +58,12 @@
LOG4J2.PROPERTIES_appender.console.layout.pattern=%d{DEFAULT} | %-5level | %c{1}
LOG4J2.PROPERTIES_appender.rolling.type=RollingFile
LOG4J2.PROPERTIES_appender.rolling.name=RollingFile
LOG4J2.PROPERTIES_appender.rolling.fileName=${sys:hadoop.log.dir}/om-audit-${hostName}.log
-LOG4J2.PROPERTIES_appender.rolling.filePattern=${sys:hadoop.log.dir}/om-audit-${hostName}-%d{yyyy-MM-dd-HH-mm-ss}-%i.log.gz
+LOG4J2.PROPERTIES_appender.rolling.filePattern=${sys:hadoop.log.dir}/om-audit-${hostName}-%d{yyyy-MM-dd}-%i.log.gz
LOG4J2.PROPERTIES_appender.rolling.layout.type=PatternLayout
LOG4J2.PROPERTIES_appender.rolling.layout.pattern=%d{DEFAULT} | %-5level |
%c{1} | %msg | %throwable{3} %n
LOG4J2.PROPERTIES_appender.rolling.policies.type=Policies
LOG4J2.PROPERTIES_appender.rolling.policies.time.type=TimeBasedTriggeringPolicy
-LOG4J2.PROPERTIES_appender.rolling.policies.time.interval=86400
+LOG4J2.PROPERTIES_appender.rolling.policies.time.interval=1
LOG4J2.PROPERTIES_appender.rolling.policies.size.type=SizeBasedTriggeringPolicy
LOG4J2.PROPERTIES_appender.rolling.policies.size.size=64MB
LOG4J2.PROPERTIES_loggers=audit
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]