Mukul | 379e252 | 2018-09-05 12:26:02 +0000 | [diff] [blame] | 1 | <?xml version = "1.0" encoding = "UTF-8" ?> |
| 2 | <!-- |
| 3 | # Copyright © 2018 AT&T, Amdocs, Bell Canada Intellectual Property. All rights reserved. |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | --> |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 17 | <included> |
| 18 | <jmxConfigurator /> |
| 19 | <!-- Example evaluator filter applied against console appender --> |
Determe, Sebastien (sd378r) | f565337 | 2019-04-26 16:41:38 +0200 | [diff] [blame] | 20 | <property |
| 21 | name="p_tim" |
| 22 | value="%d{"yyyy-MM-dd'T'HH:mm:ss.SSSXXX", UTC}" /> |
| 23 | <property |
| 24 | name="p_lvl" |
| 25 | value="%level" /> |
| 26 | <property |
| 27 | name="p_log" |
| 28 | value="%logger" /> |
| 29 | <property |
| 30 | name="p_mdc" |
| 31 | value="%replace(%replace(%mdc){'\t','\\\\t'}){'\n', '\\\\n'}" /> |
| 32 | <property |
| 33 | name="p_msg" |
| 34 | value="%replace(%replace(%msg){'\t', '\\\\t'}){'\n','\\\\n'}" /> |
| 35 | <property |
| 36 | name="p_exc" |
| 37 | value="%replace(%replace(%rootException){'\t', '\\\\t'}){'\n','\\\\n'}" /> |
| 38 | <property |
| 39 | name="p_mak" |
| 40 | value="%replace(%replace(%marker){'\t', '\\\\t'}){'\n','\\\\n'}" /> |
| 41 | <property |
| 42 | name="p_thr" |
| 43 | value="%thread" /> |
| 44 | <property |
| 45 | name="defaultPattern" |
| 46 | value="%nopexception${p_tim}\t${p_thr}\t${p_lvl}\t${p_log}\t${p_mdc}\t${p_msg}\t${p_exc}\t${p_mak}\t%n" /> |
| 47 | <property |
| 48 | name="debugPattern" |
| 49 | value="%nopexception${p_tim}|${p_lvl}|${p_mdc}|${p_exc}|%msg%n" /> |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 50 | |
Determe, Sebastien (sd378r) | f565337 | 2019-04-26 16:41:38 +0200 | [diff] [blame] | 51 | <!-- Example evaluator filter applied against console appender --> |
| 52 | <appender |
| 53 | name="STDOUT" |
| 54 | class="ch.qos.logback.core.ConsoleAppender"> |
| 55 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 56 | <level>INFO</level> |
| 57 | </filter> |
| 58 | <encoder> |
| 59 | <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n |
| 60 | </pattern> |
| 61 | </encoder> |
| 62 | </appender> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 63 | |
Determe, Sebastien (sd378r) | f565337 | 2019-04-26 16:41:38 +0200 | [diff] [blame] | 64 | <appender |
| 65 | name="ERROR" |
| 66 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 67 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 68 | <level>INFO</level> |
| 69 | </filter> |
| 70 | <file>${logDirectory}/error.log</file> |
| 71 | <append>true</append> |
| 72 | <encoder> |
| 73 | <pattern>${defaultPattern}</pattern> |
| 74 | </encoder> |
| 75 | <rollingPolicy |
| 76 | class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 77 | <fileNamePattern>${outputDirectory}/clamp/error.%d{yyyy-MM-dd}.%i.log.zip |
| 78 | </fileNamePattern> |
| 79 | <maxFileSize>50MB</maxFileSize> |
| 80 | <maxHistory>30</maxHistory> |
| 81 | <totalSizeCap>10GB</totalSizeCap> |
| 82 | </rollingPolicy> |
| 83 | <triggeringPolicy |
| 84 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 85 | <maxFileSize>10MB</maxFileSize> |
| 86 | </triggeringPolicy> |
| 87 | </appender> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 88 | |
Determe, Sebastien (sd378r) | f565337 | 2019-04-26 16:41:38 +0200 | [diff] [blame] | 89 | <appender |
| 90 | name="DEBUG" |
| 91 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 92 | <file>${logDirectory}/debug.log</file> |
| 93 | <append>true</append> |
| 94 | <encoder> |
| 95 | <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n |
| 96 | </pattern> |
| 97 | </encoder> |
| 98 | <rollingPolicy |
| 99 | class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> |
| 100 | <fileNamePattern>${outputDirectory}/clamp/debug.%d{yyyy-MM-dd}.%i.log.zip |
| 101 | </fileNamePattern> |
| 102 | <maxFileSize>50MB</maxFileSize> |
| 103 | <maxHistory>30</maxHistory> |
| 104 | <totalSizeCap>10GB</totalSizeCap> |
| 105 | </rollingPolicy> |
| 106 | </appender> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 107 | |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 108 | |
Determe, Sebastien (sd378r) | f565337 | 2019-04-26 16:41:38 +0200 | [diff] [blame] | 109 | <appender |
| 110 | name="AUDIT" |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 111 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 112 | <file>${logDirectory}/audit.log</file> |
| 113 | <append>true</append> |
| 114 | <encoder> |
| 115 | <pattern>%X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%.20thread|%X{VirtualServerName}|%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}|%X{ClassName}|%X{Unused}|%X{ProcessKey}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n |
| 116 | </pattern> |
| 117 | </encoder> |
| 118 | <rollingPolicy |
| 119 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 120 | <maxIndex>10</maxIndex> |
| 121 | <FileNamePattern>${logDirectory}/audit.%i.log.zip |
| 122 | </FileNamePattern> |
| 123 | </rollingPolicy> |
| 124 | <triggeringPolicy |
| 125 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 126 | <maxFileSize>10MB</maxFileSize> |
| 127 | </triggeringPolicy> |
| 128 | </appender> |
Determe, Sebastien (sd378r) | f565337 | 2019-04-26 16:41:38 +0200 | [diff] [blame] | 129 | <appender |
| 130 | name="asyncEELFAudit" |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 131 | class="ch.qos.logback.classic.AsyncAppender"> |
| 132 | <queueSize>256</queueSize> |
| 133 | <appender-ref ref="AUDIT" /> |
| 134 | </appender> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 135 | |
Determe, Sebastien (sd378r) | f565337 | 2019-04-26 16:41:38 +0200 | [diff] [blame] | 136 | <appender |
| 137 | name="METRIC" |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 138 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 139 | <file>${logDirectory}/metric.log</file> |
| 140 | <append>true</append> |
| 141 | <encoder> |
| 142 | <pattern>%X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%.20thread|%X{VirtualServerName}|%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}|%X{ClassName}|%X{Unused}|%X{ProcessKey}|%X{TargetVirtualEntity}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}| |
| 143 | %msg%n</pattern> |
| 144 | </encoder> |
| 145 | <rollingPolicy |
| 146 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 147 | <maxIndex>10</maxIndex> |
| 148 | <FileNamePattern>${logDirectory}/metric.%i.log.zip |
| 149 | </FileNamePattern> |
| 150 | </rollingPolicy> |
| 151 | <triggeringPolicy |
| 152 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 153 | <maxFileSize>10MB</maxFileSize> |
| 154 | </triggeringPolicy> |
| 155 | </appender> |
Determe, Sebastien (sd378r) | f565337 | 2019-04-26 16:41:38 +0200 | [diff] [blame] | 156 | <appender |
| 157 | name="asyncEELFMetrics" |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 158 | class="ch.qos.logback.classic.AsyncAppender"> |
| 159 | <queueSize>256</queueSize> |
| 160 | <appender-ref ref="METRIC" /> |
| 161 | </appender> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 162 | |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 163 | <!-- SECURITY related loggers --> |
Determe, Sebastien (sd378r) | f565337 | 2019-04-26 16:41:38 +0200 | [diff] [blame] | 164 | <appender |
| 165 | name="SECURITY" |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 166 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 167 | <file>${logDirectory}/security.log</file> |
| 168 | <append>true</append> |
| 169 | <encoder> |
| 170 | <pattern>%X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%.20thread|%X{VirtualServerName}|%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}|%X{ClassName}|%X{Unused}|%X{ProcessKey}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n |
| 171 | </pattern> |
| 172 | </encoder> |
| 173 | <rollingPolicy |
| 174 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 175 | <maxIndex>10</maxIndex> |
| 176 | <FileNamePattern>${logDirectory}/security.%i.log.zip |
| 177 | </FileNamePattern> |
| 178 | </rollingPolicy> |
| 179 | <triggeringPolicy |
| 180 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 181 | <maxFileSize>10MB</maxFileSize> |
| 182 | </triggeringPolicy> |
| 183 | </appender> |
Determe, Sebastien (sd378r) | f565337 | 2019-04-26 16:41:38 +0200 | [diff] [blame] | 184 | <appender |
| 185 | name="asyncEELFSecurity" |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 186 | class="ch.qos.logback.classic.AsyncAppender"> |
| 187 | <queueSize>256</queueSize> |
| 188 | <appender-ref ref="SECURITY" /> |
| 189 | </appender> |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 190 | <!-- logback jms appenders & loggers definition starts here --> |
Determe, Sebastien (sd378r) | f565337 | 2019-04-26 16:41:38 +0200 | [diff] [blame] | 191 | <appender |
| 192 | name="auditLogs" |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 193 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 194 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 195 | </filter> |
| 196 | <file>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.log</file> |
| 197 | <rollingPolicy |
| 198 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 199 | <fileNamePattern>${logDirectory}/Audit-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip |
| 200 | </fileNamePattern> |
| 201 | <minIndex>1</minIndex> |
| 202 | <maxIndex>9</maxIndex> |
| 203 | </rollingPolicy> |
| 204 | <triggeringPolicy |
| 205 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 206 | <maxFileSize>5MB</maxFileSize> |
| 207 | </triggeringPolicy> |
| 208 | <encoder> |
| 209 | <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern> |
| 210 | </encoder> |
| 211 | </appender> |
Determe, Sebastien (sd378r) | f565337 | 2019-04-26 16:41:38 +0200 | [diff] [blame] | 212 | <appender |
| 213 | name="perfLogs" |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 214 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 215 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 216 | </filter> |
| 217 | <file>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.log</file> |
| 218 | <rollingPolicy |
| 219 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 220 | <fileNamePattern>${logDirectory}/Perform-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip |
| 221 | </fileNamePattern> |
| 222 | <minIndex>1</minIndex> |
| 223 | <maxIndex>9</maxIndex> |
| 224 | </rollingPolicy> |
| 225 | <triggeringPolicy |
| 226 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 227 | <maxFileSize>5MB</maxFileSize> |
| 228 | </triggeringPolicy> |
| 229 | <encoder> |
| 230 | <pattern>"%d [%thread] %-5level %logger{1024} - %msg%n"</pattern> |
| 231 | </encoder> |
| 232 | </appender> |
Determe, Sebastien (sd378r) | f565337 | 2019-04-26 16:41:38 +0200 | [diff] [blame] | 233 | |
| 234 | <logger |
| 235 | name="org.onap.aaf" |
| 236 | level="DEBUG"> |
| 237 | <appender-ref ref="DEBUG" /> |
| 238 | </logger> |
| 239 | <logger |
| 240 | name="org.apache" |
| 241 | level="DEBUG"> |
| 242 | <appender-ref ref="DEBUG" /> |
| 243 | </logger> |
| 244 | <!-- Spring related loggers --> |
| 245 | <logger |
| 246 | name="org.springframework" |
| 247 | level="DEBUG"> |
| 248 | <appender-ref ref="DEBUG" /> |
| 249 | </logger> |
| 250 | |
| 251 | <!-- CLDS related loggers --> |
| 252 | <logger |
| 253 | name="org.onap.clamp" |
| 254 | level="DEBUG"> |
| 255 | <appender-ref ref="ERROR" /> |
| 256 | <appender-ref ref="DEBUG" /> |
| 257 | </logger> |
| 258 | |
| 259 | <!-- CLDS related loggers --> |
| 260 | <logger |
| 261 | name="com.att.eelf.error" |
| 262 | level="OFF"> |
| 263 | <appender-ref ref="ERROR" /> |
| 264 | </logger> |
| 265 | <!-- EELF related loggers --> |
| 266 | <logger |
| 267 | name="com.att.eelf.audit" |
| 268 | level="INFO" |
| 269 | additivity="false"> |
| 270 | <appender-ref ref="asyncEELFAudit" /> |
| 271 | </logger> |
| 272 | <logger |
| 273 | name="com.att.eelf.metrics" |
| 274 | level="DEBUG" |
| 275 | additivity="false"> |
| 276 | <appender-ref ref="asyncEELFMetrics" /> |
| 277 | </logger> |
| 278 | <logger |
| 279 | name="com.att.eelf.security" |
| 280 | level="DEBUG" |
| 281 | additivity="false"> |
| 282 | <appender-ref ref="asyncEELFSecurity" /> |
| 283 | </logger> |
| 284 | |
| 285 | <!-- logback internals logging --> |
| 286 | <logger |
| 287 | name="ch.qos.logback.classic" |
| 288 | level="INFO" /> |
| 289 | <logger |
| 290 | name="ch.qos.logback.core" |
| 291 | level="INFO" /> |
| 292 | <logger |
| 293 | name="AuditRecord" |
| 294 | level="INFO" |
| 295 | additivity="false"> |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 296 | <appender-ref ref="auditLogs" /> |
| 297 | </logger> |
Determe, Sebastien (sd378r) | f565337 | 2019-04-26 16:41:38 +0200 | [diff] [blame] | 298 | <logger |
| 299 | name="AuditRecord_DirectCall" |
| 300 | level="INFO" |
| 301 | additivity="false"> |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 302 | <appender-ref ref="auditLogs" /> |
| 303 | </logger> |
Determe, Sebastien (sd378r) | f565337 | 2019-04-26 16:41:38 +0200 | [diff] [blame] | 304 | <logger |
| 305 | name="PerfTrackerRecord" |
| 306 | level="INFO" |
| 307 | additivity="false"> |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 308 | <appender-ref ref="perfLogs" /> |
| 309 | </logger> |
| 310 | <!-- logback jms appenders & loggers definition ends here --> |
ac2550 | de00989 | 2018-05-24 15:47:05 +0200 | [diff] [blame] | 311 | |
Determe, Sebastien (sd378r) | b84a92d | 2018-08-28 13:28:12 +0200 | [diff] [blame] | 312 | <root level="DEBUG"> |
| 313 | <appender-ref ref="DEBUG" /> |
| 314 | <appender-ref ref="STDOUT" /> |
| 315 | </root> |
| 316 | </included> |