Skip to content

Commit

Permalink
chore(logs): clean logs scanning location (#7261)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored Feb 7, 2023
1 parent 516aee0 commit 0f8f186
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion datahub-frontend/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>
<filter class="log.LogMessageFilter">
<filter class="com.linkedin.metadata.utils.log.LogMessageFilter">
<excluded>Unable to renew the session. The session store may not support this feature</excluded>
<excluded>Preferred JWS algorithm: null not available. Using all metadata algorithms:</excluded>
</filter>
Expand Down
2 changes: 1 addition & 1 deletion datahub-frontend/run/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>
<filter class="log.LogMessageFilter">
<filter class="com.linkedin.metadata.utils.log.LogMessageFilter">
<excluded>Unable to renew the session. The session store may not support this feature</excluded>
<excluded>Preferred JWS algorithm: null not available. Using all metadata algorithms:</excluded>
</filter>
Expand Down
6 changes: 6 additions & 0 deletions metadata-jobs/mae-consumer-job/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
<encoder>
<pattern>%date{ISO8601} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
<filter class="com.linkedin.metadata.utils.log.LogMessageFilter">
<excluded>scanned from multiple locations</excluded>
</filter>
</appender>

<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
Expand All @@ -21,6 +24,9 @@
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>100MB</MaxFileSize>
</triggeringPolicy>
<filter class="com.linkedin.metadata.utils.log.LogMessageFilter">
<excluded>scanned from multiple locations</excluded>
</filter>
</appender>

<root level="info">
Expand Down
6 changes: 6 additions & 0 deletions metadata-jobs/mce-consumer-job/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
<encoder>
<pattern>%date{ISO8601} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
<filter class="com.linkedin.metadata.utils.log.LogMessageFilter">
<excluded>scanned from multiple locations</excluded>
</filter>
</appender>

<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
Expand All @@ -21,6 +24,9 @@
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>100MB</MaxFileSize>
</triggeringPolicy>
<filter class="com.linkedin.metadata.utils.log.LogMessageFilter">
<excluded>scanned from multiple locations</excluded>
</filter>
</appender>

<root level="info">
Expand Down
6 changes: 6 additions & 0 deletions metadata-service/war/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>
<filter class="com.linkedin.metadata.utils.log.LogMessageFilter">
<excluded>scanned from multiple locations</excluded>
</filter>
</appender>

<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
Expand All @@ -27,6 +30,9 @@
<encoder>
<pattern>%date{ISO8601} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
<filter class="com.linkedin.metadata.utils.log.LogMessageFilter">
<excluded>scanned from multiple locations</excluded>
</filter>
</appender>

<appender name="DEBUG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
Expand Down
1 change: 1 addition & 0 deletions metadata-utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ dependencies {
because("previous versions are vulnerable to CVE-2021-45105")
}
}
implementation externalDependency.logbackClassic

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package log;
package com.linkedin.metadata.utils.log;

import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.filter.AbstractMatcherFilter;
Expand Down

0 comments on commit 0f8f186

Please sign in to comment.