This is an automated email from the ASF dual-hosted git repository.

jialiang pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 5d1e4e872f AMBARI-26139 : Add host and user to the tagsync log's file 
name (#3834)
5d1e4e872f is described below

commit 5d1e4e872f04d9240ad8f4d57aad325bf101136c
Author: Himanshu Maurya <54660538+himanshumaurya09...@users.noreply.github.com>
AuthorDate: Tue Sep 24 06:18:47 2024 +0530

    AMBARI-26139 : Add host and user to the tagsync log's file name (#3834)
---
 .../BIGTOP/3.3.0/services/RANGER/properties/tagsync-logback.xml.j2    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/properties/tagsync-logback.xml.j2
 
b/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/properties/tagsync-logback.xml.j2
index ad32c446d2..60b7cdc864 100755
--- 
a/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/properties/tagsync-logback.xml.j2
+++ 
b/ambari-server/src/main/resources/stacks/BIGTOP/3.3.0/services/RANGER/properties/tagsync-logback.xml.j2
@@ -21,12 +21,12 @@
         <!--See 
http://logback.qos.ch/manual/appenders.html#RollingFileAppender-->
         <!--and 
http://logback.qos.ch/manual/appenders.html#TimeBasedRollingPolicy-->
         <!--for further documentation-->
-        <file>{{tagsync_log_dir}}/tagsync.log</file>
+        <file>{{tagsync_log_dir}}/tagsync-${hostname}-${user}.log</file>
         <encoder>
             <pattern>%d{dd MMM yyyy HH:mm:ss} %5p %c{1} [%t] - %L 
%m%n</pattern>
         </encoder>
         <rollingPolicy 
class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
-            
<fileNamePattern>{{tagsync_log_dir}}/tagsync.log.%d{yyyy-MM-dd}</fileNamePattern>
+            
<fileNamePattern>{{tagsync_log_dir}}/tagsync-${hostname}-${user}.log.%d{yyyy-MM-dd}</fileNamePattern>
             <maxHistory>15</maxHistory>
             <cleanHistoryOnStart>true</cleanHistoryOnStart>
         </rollingPolicy>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@ambari.apache.org
For additional commands, e-mail: commits-h...@ambari.apache.org

Reply via email to