blob: d406431dbb815f5be06731015179570225fc35d4 [file] [log] [blame]
Pamela Dragosh91d04c62017-02-14 19:41:00 -05001<!--
2 ============LICENSE_START=======================================================
3 ECOMP-PAP-REST
4 ================================================================================
5 Copyright (C) 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
21<configuration scan="true" scanPeriod="3 seconds" debug="true">
22 <!--<jmxConfigurator /> -->
23 <!-- directory path for all other type logs -->
24 <property name="logDir" value="logs" />
25
26 <!-- directory path for debugging type logs -->
27 <property name="debugDir" value="logs" />
28
29 <!-- specify the component name
30 <ECOMP-component-name>::= "MSO" | "DCAE" | "ASDC " | "AAI" |"Policy" | "SDNC" | "AC" -->
31 <property name="componentName" value="Policy"></property>
Ravindra Bakkamanthala87c95be2017-05-23 14:56:12 -040032 <property name="subComponentName" value="ECOMP-PAP-REST"></property>
Pamela Dragosh91d04c62017-02-14 19:41:00 -050033
34 <!-- log file names -->
35 <property name="errorLogName" value="error" />
36 <property name="metricsLogName" value="metrics" />
37 <property name="auditLogName" value="audit" />
38 <property name="debugLogName" value="debug" />
39
40
41 <!-- modified time stamp format -->
42
43 <!-- A U D I T
44 <property name="defaultAuditPattern" value="%X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%thread|%X{ServerName}|%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{ProcessKey}|%X{TargetVirtualEntity}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n" />
45 <property name="defaultAuditPattern" value="%X{BeginTimestamp}|%X{EndTimestamp}|%X{requestId}|%X{serviceInstanceId}|%t|%X{serverName}|%X{serviceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{instanceUuid}|%p|%X{severity}|%X{serverIpAddress}|%X{ElapsedTime}|%X{server}|%X{clientIpAddress}|%c||%X{ProcessKey}|%X{TargetVirtualEntity}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n" />
46 -->
ITSERVICES\rb7147e0addf52017-04-25 11:46:00 -040047 <property name="defaultAuditPattern" value="%X{TransactionBeginTimestamp}|%X{TransactionEndTimestamp}|%X{requestId}|%X{serviceInstanceId}|%t|%X{serverName}|%X{serviceName}|%X{partnerName}|%X{statusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{instanceUuid}|%p|%X{severity}|%X{serverIpAddress}|%X{TransactionElapsedTime}|%X{server}|%X{clientIpAddress}|%c||%X{ProcessKey}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n" />
Pamela Dragosh91d04c62017-02-14 19:41:00 -050048
49
50
51 <!-- M E T R I C
52 <property name="defaultMetricPattern" value="%X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%thread|%X{ServerName}|%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{ProcessKey}|%X{TargetVirtualEntity}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n" />
53 -->
ITSERVICES\rb7147e0addf52017-04-25 11:46:00 -040054 <property name="defaultMetricPattern" value="%X{MetricBeginTimestamp}|%X{MetricEndTimestamp}|%X{requestId}|%X{serviceInstanceId}|%t|%X{serverName}|%X{serviceName}|%X{partnerName}|%X{targetEntity}|%X{targetServiceName}|%X{statusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{InstanceUUID}|%p|%X{severity}|%X{serverIpAddress}|%X{MetricElapsedTime}|%X{server}|%X{clientIpAddress}|%c||%X{ProcessKey}|%X{TargetVirtualEntity}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n" />
55
Pamela Dragosh91d04c62017-02-14 19:41:00 -050056
57
58
59 <!-- E R R O R
60 <property name="defaultErrorPattern" value="%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%X{RequestId}|%thread|%X{ServiceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%X{ErrorCategory}|%X{ErrorCode}|%X{ErrorDesciption}|%msg%n" />
61 -->
62 <property name="defaultErrorPattern" value="%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%X{requestId}|%t|%X{serviceName}|%X{PartnerName}|%X{TargetEntity}|%X{TargetServiceName}|%X{ErrorCategory}|%X{ErrorCode}|%X{ErrorDesciption}|%msg%n" />
63
64
65
66 <!-- D E B U G
67 <property name="debugLoggerPatternOld" 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" />
68 <property name="debugLoggerPattern" value="%X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%thread|%X{ServerName}|%X{ServiceName}|%X{PartnerName}|%X{StatusCode}|%X{ResponseCode}|%X{ResponseDescription}|%X{ServiceName}|%X{InstanceUUID}|%.-5level|%X{AlertSeverity}|%X{ServerIPAddress}|%X{ElapsedTime}|%X{ServerFQDN}|%X{RemoteHost}|%X{ClassName}||%X{ProcessKey}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n" /> -->
69 -->
70 <property name="debugLoggerPattern" value="%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%X{RequestId}|%msg%n" />
71
72
73
74 <!-- D E F A U L T
75 <property name="defaultPatternOld" 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{ClassName}|%X{Timer}|%msg%n" />
76 <property name="defaultPattern" value="%X{BeginTimestamp}|%X{EndTimestamp}|%X{RequestId}|%X{ServiceInstanceId}|%thread|%X{ServerName}|%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{ProcessKey}|%X{TargetVirtualEntity}|%X{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n" />
77 -->
78 <property name="defaultPattern" value="%d{&quot;yyyy-MM-dd'T'HH:mm:ss.SSSXXX&quot;, UTC}|%X{requestId}|%X{serviceInstanceId}|%t|%X{serverName}|%X{serviceName}|%X{instanceUuid}|%p|%X{severity}|%X{serverIpAddress}|%X{server}|%X{clientIpAddress}|%c||%msg%n" />
79
80
81
82 <!-- P A T H
83 <property name="logDirectory" value="${logDir}/${componentName}/${subComponentName}" />
84 <property name="debugLogDirectory" value="${debugDir}/${componentName}/${subComponentName}" />
85
86 -->
87 <property name="logDirectory" value="${catalina.base}/${logDir}/${componentName}/${subComponentName}" />
88 <property name="debugLogDirectory" value="${catalina.base}/${debugDir}/${componentName}/${subComponentName}" />
89
90
91
92
93 <!-- Example evaluator filter applied against console appender -->
94 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
95 <encoder>
96 <pattern>${defaultPattern}</pattern>
97 </encoder>
98 </appender>
99
100 <!-- ============================================================================ -->
101 <!-- EELF Appenders -->
102 <!-- ============================================================================ -->
103
104 <!-- The EELFAppender is used to record events to the general application
105 log -->
106
107 <!-- EELF Audit Appender. This appender is used to record audit engine
108 related logging events. The audit logger and appender are specializations
109 of the EELF application root logger and appender. This can be used to segregate
110 Policy engine events from other components, or it can be eliminated to record
111 these events as part of the application root log. -->
112
113 <appender name="EELFAudit"
114 class="ch.qos.logback.core.rolling.RollingFileAppender">
115 <file>${logDirectory}/${auditLogName}.log</file>
116 <rollingPolicy
117 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
118 <fileNamePattern>${logDirectory}/${auditLogName}.%i.log.zip
119 </fileNamePattern>
120 <minIndex>1</minIndex>
121 <maxIndex>9</maxIndex>
122 </rollingPolicy>
123 <triggeringPolicy
124 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
125 <maxFileSize>5MB</maxFileSize>
126 </triggeringPolicy>
127 <encoder>
128 <pattern>${defaultAuditPattern}</pattern>
129 </encoder>
130 </appender>
131
132 <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender">
133 <queueSize>256</queueSize>
134 <appender-ref ref="EELFAudit" />
135 </appender>
136
137
138
139
140<appender name="EELFMetrics"
141 class="ch.qos.logback.core.rolling.RollingFileAppender">
142 <file>${logDirectory}/${metricsLogName}.log</file>
143 <rollingPolicy
144 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
145 <fileNamePattern>${logDirectory}/${metricsLogName}.%i.log.zip
146 </fileNamePattern>
147 <minIndex>1</minIndex>
148 <maxIndex>9</maxIndex>
149 </rollingPolicy>
150 <triggeringPolicy
151 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
152 <maxFileSize>5MB</maxFileSize>
153 </triggeringPolicy>
154 <encoder>
155 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
156 %msg%n"</pattern> -->
157 <pattern>${defaultMetricPattern}</pattern>
158 </encoder>
159 </appender>
160
161 <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender">
162 <queueSize>256</queueSize>
163 <appender-ref ref="EELFMetrics"/>
164 </appender>
165
166
167
168
169 <appender name="EELFError"
170 class="ch.qos.logback.core.rolling.RollingFileAppender">
171 <file>${logDirectory}/${errorLogName}.log</file>
172 <rollingPolicy
173 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
174 <fileNamePattern>${logDirectory}/${errorLogName}.%i.log.zip
175 </fileNamePattern>
176 <minIndex>1</minIndex>
177 <maxIndex>9</maxIndex>
178 </rollingPolicy>
179 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
180 <level>ERROR</level>
181 </filter>
182 <triggeringPolicy
183 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
184 <maxFileSize>5MB</maxFileSize>
185 </triggeringPolicy>
186 <encoder>
187 <pattern>${defaultErrorPattern}</pattern>
188 </encoder>
189 </appender>
190
191 <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender">
192 <queueSize>256</queueSize>
193 <appender-ref ref="EELFError"/>
194 </appender>
195
196
197
198 <appender name="EELFDebug"
199 class="ch.qos.logback.core.rolling.RollingFileAppender">
200 <file>${debugLogDirectory}/${debugLogName}.log</file>
201 <rollingPolicy
202 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
203 <fileNamePattern>${debugLogDirectory}/${debugLogName}.%i.log.zip
204 </fileNamePattern>
205 <minIndex>1</minIndex>
206 <maxIndex>9</maxIndex>
207 </rollingPolicy>
208 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
Ravindra Bakkamanthala87c95be2017-05-23 14:56:12 -0400209 <level>DEBUG</level>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500210 </filter>
211 <triggeringPolicy
212 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
213 <maxFileSize>5MB</maxFileSize>
214 </triggeringPolicy>
215 <encoder>
216 <pattern>${debugLoggerPattern}</pattern>
217 </encoder>
218 </appender>
219
220 <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender">
221 <queueSize>256</queueSize>
222 <appender-ref ref="EELFDebug" />
223 <includeCallerData>true</includeCallerData>
224 </appender>
225
226
227 <!-- ============================================================================ -->
228 <!-- EELF loggers -->
229 <!-- ============================================================================ -->
230
231 <logger name="com.att.eelf.audit" level="info" additivity="false">
232 <appender-ref ref="asyncEELFAudit" />
233 </logger>
234
235 <logger name="com.att.eelf.metrics" level="info" additivity="false">
236 <appender-ref ref="asyncEELFMetrics" />
237 </logger>
238
239 <logger name="com.att.eelf.error" level="error" additivity="false">
240 <appender-ref ref="asyncEELFError" />
241 </logger>
242
243 <logger name="com.att.eelf.debug" level="info" additivity="false">
244 <appender-ref ref="asyncEELFDebug" />
245 </logger>
246
247
248
249 <root level="INFO">
250 <appender-ref ref="asyncEELFDebug" />
251 <appender-ref ref="asyncEELFError" />
252 </root>
253
254</configuration>