blob: a47486d9d72b12aa46f23401b70769c46042e1d0 [file] [log] [blame]
sg481naaf2df82017-08-03 17:56:38 -04001<!--
2 ============LICENSE_START==================================================
3 * org.onap.dmaap
4 * ===========================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * ===========================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END====================================================
19 *
20 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
21 *
22-->
23<configuration scan="true" scanPeriod="3 seconds" debug="true">
24 <!--<jmxConfigurator /> -->
25 <!-- directory path for all other type logs -->
26 <!-- property name="logDir" value="/home/eby/dr2/logs" / -->
27 <property name="logDir" value="/opt/app/datartr/logs" />
28
29 <!-- directory path for debugging type logs -->
30 <!-- property name="debugDir" value="/home/eby/dr2/debug-logs" /-->
31
32 <!-- specify the component name
33 <ECOMP-component-name>::= "MSO" | "DCAE" | "ASDC " | "AAI" |"Policy" | "SDNC" | "AC" -->
34 <!-- This creates the MSO directory in in the LogDir which is not needed, mentioned last directory of the path-->
35 <!-- property name="componentName" value="logs"></property -->
36
37 <!-- log file names -->
38 <property name="generalLogName" value="apicalls" />
39 <!-- name="securityLogName" value="security" -->
40 <!-- name="performanceLogName" value="performance" -->
41 <!-- name="serverLogName" value="server" -->
42 <!-- name="policyLogName" value="policy"-->
43 <property name="errorLogName" value="errors" />
44 <!-- name="metricsLogName" value="metrics" -->
45 <!-- name="auditLogName" value="audit" -->
46 <!-- name="debugLogName" value="debug" -->
47 <property name="jettyAndNodeLogName" value="node"></property>
48 <property name="defaultPattern" value="%d{MM/dd-HH:mm:ss.SSS}|%logger|%X{RequestId}|%X{ServiceInstanceId}|%thread|%X{ServiceName}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ServerFQDN}|%X{RemoteHost}|%X{Timer}|%msg%n" />
49 <property name="jettyAndNodeLoggerPattern" value="%d{MM/dd-HH:mm:ss.SSS}|%logger|%thread|%.-5level|%msg%n" />
50
51 <property name="debugLoggerPattern" value="%d{MM/dd-HH:mm:ss.SSS}|%X{RequestId}|%X{ServiceInstanceId}|%thread|%X{ServiceName}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ServerFQDN}|%X{RemoteHost}|%X{Timer}|[%caller{3}]|%msg%n" />
52
53 <property name="logDirectory" value="${logDir}" />
54 <!-- property name="debugLogDirectory" value="${debugDir}/${componentName}" /-->
55
56
57 <!-- Example evaluator filter applied against console appender -->
58 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
59 <encoder>
60 <pattern>${defaultPattern}</pattern>
61 </encoder>
62 </appender>
63
64 <!-- ============================================================================ -->
65 <!-- EELF Appenders -->
66 <!-- ============================================================================ -->
67
68 <!-- The EELFAppender is used to record events to the general application
69 log -->
70
71
72 <appender name="EELF"
73 class="ch.qos.logback.core.rolling.RollingFileAppender">
74 <file>${logDirectory}/${generalLogName}.log</file>
75 <filter class="ch.qos.logback.classic.filter.LevelFilter">
76 <level>INFO</level>
77 <onMatch>ACCEPT</onMatch>
78 <onMismatch>DENY</onMismatch>
79 </filter>
80 <rollingPolicy
81 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
82 <fileNamePattern>${logDirectory}/${generalLogName}.%i.log.zip
83 </fileNamePattern>
84 <minIndex>1</minIndex>
85 <maxIndex>9</maxIndex>
86 </rollingPolicy>
87 <triggeringPolicy
88 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
89 <maxFileSize>5MB</maxFileSize>
90 </triggeringPolicy>
91 <encoder>
92 <pattern>${defaultPattern}</pattern>
93 </encoder>
94 </appender>
95
96 <appender name="asyncEELF" class="ch.qos.logback.classic.AsyncAppender">
97 <queueSize>256</queueSize>
98 <appender-ref ref="EELF" />
99 </appender>
100
101 <!-- EELF Security Appender. This appender is used to record security events
102 to the security log file. Security events are separate from other loggers
103 in EELF so that security log records can be captured and managed in a secure
104 way separate from the other logs. This appender is set to never discard any
105 events. -->
106 <!--appender name="EELFSecurity"
107 class="ch.qos.logback.core.rolling.RollingFileAppender">
108 <file>${logDirectory}/${securityLogName}.log</file>
109 <rollingPolicy
110 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
111 <fileNamePattern>${logDirectory}/${securityLogName}.%i.log.zip
112 </fileNamePattern>
113 <minIndex>1</minIndex>
114 <maxIndex>9</maxIndex>
115 </rollingPolicy>
116 <triggeringPolicy
117 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
118 <maxFileSize>5MB</maxFileSize>
119 </triggeringPolicy>
120 <encoder>
121 <pattern>${defaultPattern}</pattern>
122 </encoder>
123 </appender>
124
125 <appender name="asyncEELFSecurity" class="ch.qos.logback.classic.AsyncAppender">
126 <queueSize>256</queueSize>
127 <discardingThreshold>0</discardingThreshold>
128 <appender-ref ref="EELFSecurity" />
129 </appender-->
130
131 <!-- EELF Performance Appender. This appender is used to record performance
132 records. -->
133 <!--appender name="EELFPerformance"
134 class="ch.qos.logback.core.rolling.RollingFileAppender">
135 <file>${logDirectory}/${performanceLogName}.log</file>
136 <rollingPolicy
137 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
138 <fileNamePattern>${logDirectory}/${performanceLogName}.%i.log.zip
139 </fileNamePattern>
140 <minIndex>1</minIndex>
141 <maxIndex>9</maxIndex>
142 </rollingPolicy>
143 <triggeringPolicy
144 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
145 <maxFileSize>5MB</maxFileSize>
146 </triggeringPolicy>
147 <encoder>
148 <outputPatternAsHeader>true</outputPatternAsHeader>
149 <pattern>${defaultPattern}</pattern>
150 </encoder>
151 </appender>
152 <appender name="asyncEELFPerformance" class="ch.qos.logback.classic.AsyncAppender">
153 <queueSize>256</queueSize>
154 <appender-ref ref="EELFPerformance" />
155 </appender-->
156
157 <!-- EELF Server Appender. This appender is used to record Server related
158 logging events. The Server logger and appender are specializations of the
159 EELF application root logger and appender. This can be used to segregate Server
160 events from other components, or it can be eliminated to record these events
161 as part of the application root log. -->
162 <!--appender name="EELFServer"
163 class="ch.qos.logback.core.rolling.RollingFileAppender">
164 <file>${logDirectory}/${serverLogName}.log</file>
165 <rollingPolicy
166 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
167 <fileNamePattern>${logDirectory}/${serverLogName}.%i.log.zip
168 </fileNamePattern>
169 <minIndex>1</minIndex>
170 <maxIndex>9</maxIndex>
171 </rollingPolicy>
172 <triggeringPolicy
173 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
174 <maxFileSize>5MB</maxFileSize>
175 </triggeringPolicy>
176 <encoder>
177 <pattern>${defaultPattern}</pattern>
178 </encoder>
179 </appender>
180 <appender name="asyncEELFServer" class="ch.qos.logback.classic.AsyncAppender">
181 <queueSize>256</queueSize>
182 <appender-ref ref="EELFServer" />
183 </appender-->
184
185
186 <!-- EELF Policy Appender. This appender is used to record Policy engine
187 related logging events. The Policy logger and appender are specializations
188 of the EELF application root logger and appender. This can be used to segregate
189 Policy engine events from other components, or it can be eliminated to record
190 these events as part of the application root log. -->
191 <!--appender name="EELFPolicy"
192 class="ch.qos.logback.core.rolling.RollingFileAppender">
193 <file>${logDirectory}/${policyLogName}.log</file>
194 <rollingPolicy
195 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
196 <fileNamePattern>${logDirectory}/${policyLogName}.%i.log.zip
197 </fileNamePattern>
198 <minIndex>1</minIndex>
199 <maxIndex>9</maxIndex>
200 </rollingPolicy>
201 <triggeringPolicy
202 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
203 <maxFileSize>5MB</maxFileSize>
204 </triggeringPolicy>
205 <encoder>
206 <pattern>${defaultPattern}</pattern>
207 </encoder>
208 </appender>
209 <appender name="asyncEELFPolicy" class="ch.qos.logback.classic.AsyncAppender">
210 <queueSize>256</queueSize>
211 <appender-ref ref="EELFPolicy" >
212 </appender-->
213
214
215 <!-- EELF Audit Appender. This appender is used to record audit engine
216 related logging events. The audit logger and appender are specializations
217 of the EELF application root logger and appender. This can be used to segregate
218 Policy engine events from other components, or it can be eliminated to record
219 these events as part of the application root log. -->
220
221 <!--appender name="EELFAudit"
222 class="ch.qos.logback.core.rolling.RollingFileAppender">
223 <file>${logDirectory}/${auditLogName}.log</file>
224 <rollingPolicy
225 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
226 <fileNamePattern>${logDirectory}/${auditLogName}.%i.log.zip
227 </fileNamePattern>
228 <minIndex>1</minIndex>
229 <maxIndex>9</maxIndex>
230 </rollingPolicy>
231 <triggeringPolicy
232 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
233 <maxFileSize>5MB</maxFileSize>
234 </triggeringPolicy>
235 <encoder>
236 <pattern>${defaultPattern}</pattern>
237 </encoder>
238 </appender>
239 <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender">
240 <queueSize>256</queueSize>
241 <appender-ref ref="EELFAudit" />
242 </appender-->
243
244<!--appender name="EELFMetrics"
245 class="ch.qos.logback.core.rolling.RollingFileAppender">
246 <file>${logDirectory}/${metricsLogName}.log</file>
247 <rollingPolicy
248 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
249 <fileNamePattern>${logDirectory}/${metricsLogName}.%i.log.zip
250 </fileNamePattern>
251 <minIndex>1</minIndex>
252 <maxIndex>9</maxIndex>
253 </rollingPolicy>
254 <triggeringPolicy
255 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
256 <maxFileSize>5MB</maxFileSize>
257 </triggeringPolicy>
258 <encoder-->
259 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
260 %msg%n"</pattern> -->
261 <!--pattern>${defaultPattern}</pattern>
262 </encoder>
263 </appender>
264
265
266 <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender">
267 <queueSize>256</queueSize>
268 <appender-ref ref="EELFMetrics"/>
269 </appender-->
270
271 <appender name="EELFError"
272 class="ch.qos.logback.core.rolling.RollingFileAppender">
273 <file>${logDirectory}/${errorLogName}.log</file>
274 <filter class="ch.qos.logback.classic.filter.LevelFilter">
275 <level>ERROR</level>
276 <onMatch>ACCEPT</onMatch>
277 <onMismatch>DENY</onMismatch>
278 </filter>
279 <rollingPolicy
280 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
281 <fileNamePattern>${logDirectory}/${errorLogName}.%i.log.zip
282 </fileNamePattern>
283 <minIndex>1</minIndex>
284 <maxIndex>9</maxIndex>
285 </rollingPolicy>
286 <triggeringPolicy
287 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
288 <maxFileSize>5MB</maxFileSize>
289 </triggeringPolicy>
290 <encoder>
291 <pattern>${defaultPattern}</pattern>
292 </encoder>
293 </appender>
294
295 <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender">
296 <queueSize>256</queueSize>
297 <appender-ref ref="EELFError"/>
298 </appender>
299
300 <!-- ============================================================================ -->
301 <appender name="jettyAndNodelog"
302 class="ch.qos.logback.core.rolling.RollingFileAppender">
303 <file>${logDirectory}/${jettyAndNodeLogName}.log</file>
304 <filter class="com.att.research.datarouter.node.eelf.EELFFilter" />
305 <rollingPolicy
306 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
307 <fileNamePattern>${logDirectory}/${jettyAndNodeLogName}.%i.log.zip
308 </fileNamePattern>
309 <minIndex>1</minIndex>
310 <maxIndex>9</maxIndex>
311 </rollingPolicy>
312 <triggeringPolicy
313 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
314 <maxFileSize>5MB</maxFileSize>
315 </triggeringPolicy>
316 <encoder>
317 <pattern>${jettyAndNodeLoggerPattern}</pattern>
318 </encoder>
319 </appender>
320
321 <appender name="asyncEELFjettyAndNodelog" class="ch.qos.logback.classic.AsyncAppender">
322 <queueSize>256</queueSize>
323 <appender-ref ref="jettyAndNodelog" />
324 <includeCallerData>true</includeCallerData>
325 </appender>
326
327 <!-- ============================================================================ -->
328
329
330 <!--appender name="EELFDebug"
331 class="ch.qos.logback.core.rolling.RollingFileAppender">
332 <file>${debugLogDirectory}/${debugLogName}.log</file>
333 <rollingPolicy
334 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
335 <fileNamePattern>${debugLogDirectory}/${debugLogName}.%i.log.zip
336 </fileNamePattern>
337 <minIndex>1</minIndex>
338 <maxIndex>9</maxIndex>
339 </rollingPolicy>
340 <triggeringPolicy
341 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
342 <maxFileSize>5MB</maxFileSize>
343 </triggeringPolicy>
344 <encoder>
345 <pattern>${debugLoggerPattern}</pattern>
346 </encoder>
347 </appender>
348
349 <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender">
350 <queueSize>256</queueSize>
351 <appender-ref ref="EELFDebug" />
352 <includeCallerData>true</includeCallerData>
353 </appender-->
354
355
356 <!-- ============================================================================ -->
357 <!-- EELF loggers -->
358 <!-- ============================================================================ -->
359 <logger name="com.att.eelf" level="info" additivity="false">
360 <appender-ref ref="asyncEELF" />
361 </logger>
362
363 <logger name="com.att.eelf.error" level="error" additivity="false">
364 <appender-ref ref="asyncEELFError" />
365 </logger>
366
367 <logger name="log4j.logger.org.eclipse.jetty" additivity="false" level="info">
368 <appender-ref ref="asyncEELFjettyAndNodelog"/>
369 </logger>
370
371 <!-- logger name="com.att.eelf.security" level="info" additivity="false">
372 <appender-ref ref="asyncEELFSecurity" />
373 </logger>
374 <logger name="com.att.eelf.perf" level="info" additivity="false">
375 <appender-ref ref="asyncEELFPerformance" />
376 </logger>
377 <logger name="com.att.eelf.server" level="info" additivity="false">
378 <appender-ref ref="asyncEELFServer" />
379 </logger>
380 <logger name="com.att.eelf.policy" level="info" additivity="false">
381 <appender-ref ref="asyncEELFPolicy" />
382 </logger>
383
384 <logger name="com.att.eelf.audit" level="info" additivity="false">
385 <appender-ref ref="asyncEELFAudit" />
386 </logger>
387
388 <logger name="com.att.eelf.metrics" level="info" additivity="false">
389 <appender-ref ref="asyncEELFMetrics" />
390 </logger>
391
392 <logger name="com.att.eelf.debug" level="debug" additivity="false">
393 <appender-ref ref="asyncEELFDebug" />
394 </logger-->
395
396
397
398
399 <root level="INFO">
400 <appender-ref ref="asyncEELF" />
401 <appender-ref ref="asyncEELFError" />
402 <appender-ref ref="asyncEELFjettyAndNodelog" />
403 </root>
404
405</configuration>