blob: f67b1cf380eefa9ef095c914e13df8cee3b57df7 [file] [log] [blame]
econwar378cf192019-01-08 16:19:59 +00001<!--
2 ============LICENSE_START=======================================================
3 Copyright (C) 2019 Nordix Foundation.
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
17 SPDX-License-Identifier: Apache-2.0
18 ============LICENSE_END=========================================================
19-->
20<configuration scan="true" scanPeriod="3 seconds" debug="true">
efiacor7b9a0872019-08-28 21:20:22 +000021 <!--<jmxConfigurator /> -->
22 <!-- directory path for all other type logs -->
23 <!-- property name="logDir" value="/home/eby/dr2/logs" / -->
24 <property name="logDir" value="/opt/app/datartr/logs" />
econwar378cf192019-01-08 16:19:59 +000025
efiacor7b9a0872019-08-28 21:20:22 +000026 <!-- directory path for debugging type logs -->
27 <!-- property name="debugDir" value="/home/eby/dr2/debug-logs" /-->
econwar378cf192019-01-08 16:19:59 +000028
efiacor7b9a0872019-08-28 21:20:22 +000029 <!-- specify the component name
30 <ECOMP-component-name>::= "MSO" | "DCAE" | "ASDC " | "AAI" |"Policy" | "SDNC" | "AC" -->
31 <!-- This creates the MSO directory in in the LogDir which is not needed, mentioned last directory of the path-->
32 <!-- property name="componentName" value="logs"></property -->
econwar378cf192019-01-08 16:19:59 +000033
efiacor7b9a0872019-08-28 21:20:22 +000034 <!-- log file names -->
35 <property name="generalLogName" value="apicalls" />
36 <!-- name="securityLogName" value="security" -->
37 <!-- name="performanceLogName" value="performance" -->
38 <!-- name="serverLogName" value="server" -->
39 <!-- name="policyLogName" value="policy"-->
40 <property name="errorLogName" value="errors" />
41 <!-- name="metricsLogName" value="metrics" -->
42 <property name="debugLogName" value="debug"/>
43 <property name="jettyLogName" value="jetty"/>
44 <property name="defaultPattern" value="%d{MM/dd-HH:mm:ss.SSS}|%logger|%X{RequestId}|%X{InvocationId}|%X{ServiceInstanceId}|%thread|%X{ServiceName}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ServerFQDN}|%X{RemoteHost}|%X{Timer}|%msg%n" />
45 <property name="jettyLoggerPattern" value="%d{MM/dd-HH:mm:ss.SSS}|%logger|%thread|%.-5level|%msg%n" />
econwar378cf192019-01-08 16:19:59 +000046
efiacor7b9a0872019-08-28 21:20:22 +000047 <property name="debugLoggerPattern" value="%d{MM/dd-HH:mm:ss.SSS}|%logger|%X{RequestId}|%X{InvocationId}|%X{ServiceInstanceId}|%thread|%X{ServiceName}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ServerFQDN}|%X{RemoteHost}|%X{Timer}|[%caller{3}]|%msg%n" />
econwar378cf192019-01-08 16:19:59 +000048
efiacor7b9a0872019-08-28 21:20:22 +000049 <property name="logDirectory" value="${logDir}" />
50 <!-- property name="debugLogDirectory" value="${debugDir}/${componentName}" /-->
econwar378cf192019-01-08 16:19:59 +000051
econwar378cf192019-01-08 16:19:59 +000052
efiacor7b9a0872019-08-28 21:20:22 +000053 <!-- Example evaluator filter applied against console appender -->
54 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
55 <encoder>
56 <pattern>${defaultPattern}</pattern>
57 </encoder>
58 </appender>
econwar378cf192019-01-08 16:19:59 +000059
efiacor7b9a0872019-08-28 21:20:22 +000060 <!-- ============================================================================ -->
61 <!-- EELF Appenders -->
62 <!-- ============================================================================ -->
econwar378cf192019-01-08 16:19:59 +000063
efiacor7b9a0872019-08-28 21:20:22 +000064 <!-- The EELFAppender is used to record events to the general application
65 log -->
econwar378cf192019-01-08 16:19:59 +000066
econwar378cf192019-01-08 16:19:59 +000067
efiacor7b9a0872019-08-28 21:20:22 +000068 <appender name="EELF"
69 class="ch.qos.logback.core.rolling.RollingFileAppender">
70 <file>${logDirectory}/${generalLogName}.log</file>
71 <filter class="ch.qos.logback.classic.filter.LevelFilter">
72 <level>INFO</level>
73 <onMatch>ACCEPT</onMatch>
74 <onMismatch>DENY</onMismatch>
75 </filter>
76 <rollingPolicy
77 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
78 <fileNamePattern>${logDirectory}/${generalLogName}.%i.log.zip
79 </fileNamePattern>
80 <minIndex>1</minIndex>
81 <maxIndex>9</maxIndex>
82 </rollingPolicy>
83 <triggeringPolicy
84 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
85 <maxFileSize>50MB</maxFileSize>
86 </triggeringPolicy>
87 <encoder>
88 <pattern>${defaultPattern}</pattern>
89 </encoder>
90 </appender>
econwar378cf192019-01-08 16:19:59 +000091
efiacor7b9a0872019-08-28 21:20:22 +000092 <appender name="asyncEELF" class="ch.qos.logback.classic.AsyncAppender">
93 <queueSize>256</queueSize>
94 <appender-ref ref="EELF" />
95 </appender>
econwar378cf192019-01-08 16:19:59 +000096
efiacor7b9a0872019-08-28 21:20:22 +000097 <!-- EELF Security Appender. This appender is used to record security events
98 to the security log file. Security events are separate from other loggers
99 in EELF so that security log records can be captured and managed in a secure
100 way separate from the other logs. This appender is set to never discard any
101 events. -->
102 <!--appender name="EELFSecurity"
103 class="ch.qos.logback.core.rolling.RollingFileAppender">
104 <file>${logDirectory}/${securityLogName}.log</file>
105 <rollingPolicy
106 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
107 <fileNamePattern>${logDirectory}/${securityLogName}.%i.log.zip
108 </fileNamePattern>
109 <minIndex>1</minIndex>
110 <maxIndex>9</maxIndex>
111 </rollingPolicy>
112 <triggeringPolicy
113 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
114 <maxFileSize>5MB</maxFileSize>
115 </triggeringPolicy>
116 <encoder>
117 <pattern>${defaultPattern}</pattern>
118 </encoder>
119 </appender>
econwar378cf192019-01-08 16:19:59 +0000120
efiacor7b9a0872019-08-28 21:20:22 +0000121 <appender name="asyncEELFSecurity" class="ch.qos.logback.classic.AsyncAppender">
122 <queueSize>256</queueSize>
123 <discardingThreshold>0</discardingThreshold>
124 <appender-ref ref="EELFSecurity" />
125 </appender-->
126
127 <!-- EELF Performance Appender. This appender is used to record performance
128 records. -->
129 <!--appender name="EELFPerformance"
130 class="ch.qos.logback.core.rolling.RollingFileAppender">
131 <file>${logDirectory}/${performanceLogName}.log</file>
132 <rollingPolicy
133 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
134 <fileNamePattern>${logDirectory}/${performanceLogName}.%i.log.zip
135 </fileNamePattern>
136 <minIndex>1</minIndex>
137 <maxIndex>9</maxIndex>
138 </rollingPolicy>
139 <triggeringPolicy
140 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
141 <maxFileSize>5MB</maxFileSize>
142 </triggeringPolicy>
143 <encoder>
144 <outputPatternAsHeader>true</outputPatternAsHeader>
145 <pattern>${defaultPattern}</pattern>
146 </encoder>
147 </appender>
148 <appender name="asyncEELFPerformance" class="ch.qos.logback.classic.AsyncAppender">
149 <queueSize>256</queueSize>
150 <appender-ref ref="EELFPerformance" />
151 </appender-->
152
153 <!-- EELF Server Appender. This appender is used to record Server related
154 logging events. The Server logger and appender are specializations of the
155 EELF application root logger and appender. This can be used to segregate Server
156 events from other components, or it can be eliminated to record these events
157 as part of the application root log. -->
158 <!--appender name="EELFServer"
159 class="ch.qos.logback.core.rolling.RollingFileAppender">
160 <file>${logDirectory}/${serverLogName}.log</file>
161 <rollingPolicy
162 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
163 <fileNamePattern>${logDirectory}/${serverLogName}.%i.log.zip
164 </fileNamePattern>
165 <minIndex>1</minIndex>
166 <maxIndex>9</maxIndex>
167 </rollingPolicy>
168 <triggeringPolicy
169 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
170 <maxFileSize>5MB</maxFileSize>
171 </triggeringPolicy>
172 <encoder>
173 <pattern>${defaultPattern}</pattern>
174 </encoder>
175 </appender>
176 <appender name="asyncEELFServer" class="ch.qos.logback.classic.AsyncAppender">
177 <queueSize>256</queueSize>
178 <appender-ref ref="EELFServer" />
179 </appender-->
180
181
182 <!-- EELF Policy Appender. This appender is used to record Policy engine
183 related logging events. The Policy logger and appender are specializations
184 of the EELF application root logger and appender. This can be used to segregate
185 Policy engine events from other components, or it can be eliminated to record
186 these events as part of the application root log. -->
187 <!--appender name="EELFPolicy"
188 class="ch.qos.logback.core.rolling.RollingFileAppender">
189 <file>${logDirectory}/${policyLogName}.log</file>
190 <rollingPolicy
191 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
192 <fileNamePattern>${logDirectory}/${policyLogName}.%i.log.zip
193 </fileNamePattern>
194 <minIndex>1</minIndex>
195 <maxIndex>9</maxIndex>
196 </rollingPolicy>
197 <triggeringPolicy
198 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
199 <maxFileSize>5MB</maxFileSize>
200 </triggeringPolicy>
201 <encoder>
202 <pattern>${defaultPattern}</pattern>
203 </encoder>
204 </appender>
205 <appender name="asyncEELFPolicy" class="ch.qos.logback.classic.AsyncAppender">
206 <queueSize>256</queueSize>
207 <appender-ref ref="EELFPolicy" >
208 </appender-->
209
210
211 <!-- EELF Audit Appender. This appender is used to record audit engine
212 related logging events. The audit logger and appender are specializations
213 of the EELF application root logger and appender. This can be used to segregate
214 Policy engine events from other components, or it can be eliminated to record
215 these events as part of the application root log. -->
216
217 <!--appender name="EELFAudit"
218 class="ch.qos.logback.core.rolling.RollingFileAppender">
219 <file>${logDirectory}/${auditLogName}.log</file>
220 <rollingPolicy
221 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
222 <fileNamePattern>${logDirectory}/${auditLogName}.%i.log.zip
223 </fileNamePattern>
224 <minIndex>1</minIndex>
225 <maxIndex>9</maxIndex>
226 </rollingPolicy>
227 <triggeringPolicy
228 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
229 <maxFileSize>5MB</maxFileSize>
230 </triggeringPolicy>
231 <encoder>
232 <pattern>${defaultPattern}</pattern>
233 </encoder>
234 </appender>
235 <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender">
236 <queueSize>256</queueSize>
237 <appender-ref ref="EELFAudit" />
238 </appender-->
239
240 <!--appender name="EELFMetrics"
241 class="ch.qos.logback.core.rolling.RollingFileAppender">
242 <file>${logDirectory}/${metricsLogName}.log</file>
243 <rollingPolicy
244 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
245 <fileNamePattern>${logDirectory}/${metricsLogName}.%i.log.zip
246 </fileNamePattern>
247 <minIndex>1</minIndex>
248 <maxIndex>9</maxIndex>
249 </rollingPolicy>
250 <triggeringPolicy
251 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
252 <maxFileSize>5MB</maxFileSize>
253 </triggeringPolicy>
254 <encoder-->
255 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
256 %msg%n"</pattern> -->
257 <!--pattern>${defaultPattern}</pattern>
258 </encoder>
259</appender>
260
261
262<appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender">
263 <queueSize>256</queueSize>
264 <appender-ref ref="EELFMetrics"/>
265</appender-->
266
267 <appender name="EELFError"
268 class="ch.qos.logback.core.rolling.RollingFileAppender">
269 <file>${logDirectory}/${errorLogName}.log</file>
270 <filter class="ch.qos.logback.classic.filter.LevelFilter">
271 <level>ERROR</level>
272 <onMatch>ACCEPT</onMatch>
273 <onMismatch>DENY</onMismatch>
274 </filter>
275 <rollingPolicy
276 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
277 <fileNamePattern>${logDirectory}/${errorLogName}.%i.log.zip
278 </fileNamePattern>
279 <minIndex>1</minIndex>
280 <maxIndex>9</maxIndex>
281 </rollingPolicy>
282 <triggeringPolicy
283 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
284 <maxFileSize>50MB</maxFileSize>
285 </triggeringPolicy>
286 <encoder>
287 <pattern>${defaultPattern}</pattern>
288 </encoder>
289 </appender>
290
291 <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender">
292 <queueSize>256</queueSize>
293 <appender-ref ref="EELFError"/>
294 </appender>
295
296 <!-- ============================================================================ -->
297 <appender name="jettylog"
298 class="ch.qos.logback.core.rolling.RollingFileAppender">
299 <file>${logDirectory}/${jettyLogName}.log</file>
300 <filter class="org.onap.dmaap.datarouter.provisioning.eelf.JettyFilter" />
301 <rollingPolicy
302 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
303 <fileNamePattern>${logDirectory}/${jettyLogName}.%i.log.zip
304 </fileNamePattern>
305 <minIndex>1</minIndex>
306 <maxIndex>9</maxIndex>
307 </rollingPolicy>
308 <triggeringPolicy
309 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
310 <maxFileSize>50MB</maxFileSize>
311 </triggeringPolicy>
312 <encoder>
313 <pattern>${jettyLoggerPattern}</pattern>
314 </encoder>
315 </appender>
316
317 <appender name="asyncEELFjettylog" class="ch.qos.logback.classic.AsyncAppender">
318 <queueSize>256</queueSize>
319 <appender-ref ref="jettylog" />
320 <includeCallerData>true</includeCallerData>
321 </appender>
322
323 <!-- ============================================================================ -->
324
325
326 <appender name="EELFDebug"
327 class="ch.qos.logback.core.rolling.RollingFileAppender">
328 <file>${logDirectory}/${debugLogName}.log</file>
329 <filter class="org.onap.dmaap.datarouter.provisioning.eelf.DebugTraceFilter" />
330 <rollingPolicy
331 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
332 <fileNamePattern>${logDirectory}/${debugLogName}.%i.log.zip
333 </fileNamePattern>
334 <minIndex>1</minIndex>
335 <maxIndex>9</maxIndex>
336 </rollingPolicy>
337 <triggeringPolicy
338 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
339 <maxFileSize>50MB</maxFileSize>
340 </triggeringPolicy>
341 <encoder>
342 <pattern>${defaultPattern}</pattern>
343 </encoder>
344 </appender>
345
346 <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender">
347 <queueSize>256</queueSize>
348 <appender-ref ref="EELFDebug" />
349 <includeCallerData>true</includeCallerData>
350 </appender>
351
352
353 <!-- ============================================================================ -->
354 <!-- EELF loggers -->
355 <!-- ============================================================================ -->
356 <logger name="com.att.eelf" level="info" additivity="false">
357 <appender-ref ref="asyncEELF" />
358 </logger>
359
360 <logger name="com.att.eelf.error" level="error" additivity="false">
361 <appender-ref ref="asyncEELFError" />
362 </logger>
363
364 <logger name="log4j.logger.org.eclipse.jetty" additivity="false" level="info">
econwar378cf192019-01-08 16:19:59 +0000365 <appender-ref ref="asyncEELFjettylog"/>
366 </logger>
367
efiacor7b9a0872019-08-28 21:20:22 +0000368 <logger name="com.att.eelf.debug" level="debug" additivity="false">
369 <appender-ref ref="asyncEELFDebug" />
370 </logger>
econwar378cf192019-01-08 16:19:59 +0000371
efiacor7b9a0872019-08-28 21:20:22 +0000372 <!-- logger name="com.att.eelf.security" level="info" additivity="false">
373 <appender-ref ref="asyncEELFSecurity" />
374 </logger>
375 <logger name="com.att.eelf.perf" level="info" additivity="false">
376 <appender-ref ref="asyncEELFPerformance" />
377 </logger>
378 <logger name="com.att.eelf.server" level="info" additivity="false">
379 <appender-ref ref="asyncEELFServer" />
380 </logger>
381 <logger name="com.att.eelf.policy" level="info" additivity="false">
382 <appender-ref ref="asyncEELFPolicy" />
383 </logger>
384
385 <logger name="com.att.eelf.audit" level="info" additivity="false">
386 <appender-ref ref="asyncEELFAudit" />
387 </logger>
388
389 <logger name="com.att.eelf.metrics" level="info" additivity="false">
390 <appender-ref ref="asyncEELFMetrics" />
391 </logger>
392
393 <logger name="com.att.eelf.debug" level="debug" additivity="false">
394 <appender-ref ref="asyncEELFDebug" />
395 </logger-->
396
397
398
399
400 <root level="INFO">
401 <appender-ref ref="asyncEELF" />
402 <appender-ref ref="asyncEELFError" />
403 <appender-ref ref="asyncEELFjettylog" />
404 <appender-ref ref="asyncEELFDebug" />
405 </root>
406
407</configuration>