blob: 9f725493ef3bf5819a3e80243cd821c166e2f5b4 [file] [log] [blame]
Pamela Dragosh91d04c62017-02-14 19:41:00 -05001<!--
2 ============LICENSE_START=======================================================
3 PolicyEngineAPI
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
Guo Ruijing073cc182017-07-31 08:47:35 +000030 <ONAP-component-name>::= "MSO" | "DCAE" | "ASDC " | "AAI" |"Policy" | "SDNC" | "AC" -->
Pamela Dragosh91d04c62017-02-14 19:41:00 -050031 <property name="componentName" value="Policy"></property>
32 <property name="subComponentName" value="PolicyEngineAPI"></property>
33
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="${catalina.base}/${logDir}/${componentName}/${subComponentName}" />
84 <property name="debugLogDirectory" value="${catalina.base}/${debugDir}/${componentName}/${subComponentName}" />
85 -->
86 <property name="logDirectory" value="${logDir}/${componentName}/${subComponentName}" />
87 <property name="debugLogDirectory" value="${debugDir}/${componentName}/${subComponentName}" />
88
89
90
91
92 <!-- Example evaluator filter applied against console appender -->
93 <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
94 <encoder>
95 <pattern>${defaultPattern}</pattern>
96 </encoder>
97 </appender>
98
99 <!-- ============================================================================ -->
100 <!-- EELF Appenders -->
101 <!-- ============================================================================ -->
102
103 <!-- The EELFAppender is used to record events to the general application
104 log -->
105
106 <!-- EELF Audit Appender. This appender is used to record audit engine
107 related logging events. The audit logger and appender are specializations
108 of the EELF application root logger and appender. This can be used to segregate
109 Policy engine events from other components, or it can be eliminated to record
110 these events as part of the application root log. -->
111
112 <appender name="EELFAudit"
113 class="ch.qos.logback.core.rolling.RollingFileAppender">
114 <file>${logDirectory}/${auditLogName}.log</file>
115 <rollingPolicy
116 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
117 <fileNamePattern>${logDirectory}/${auditLogName}.%i.log.zip
118 </fileNamePattern>
119 <minIndex>1</minIndex>
120 <maxIndex>9</maxIndex>
121 </rollingPolicy>
122 <triggeringPolicy
123 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
124 <maxFileSize>5MB</maxFileSize>
125 </triggeringPolicy>
126 <encoder>
127 <pattern>${defaultAuditPattern}</pattern>
128 </encoder>
129 </appender>
130
131 <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender">
132 <queueSize>256</queueSize>
133 <appender-ref ref="EELFAudit" />
134 </appender>
135
136
137
138
139<appender name="EELFMetrics"
140 class="ch.qos.logback.core.rolling.RollingFileAppender">
141 <file>${logDirectory}/${metricsLogName}.log</file>
142 <rollingPolicy
143 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
144 <fileNamePattern>${logDirectory}/${metricsLogName}.%i.log.zip
145 </fileNamePattern>
146 <minIndex>1</minIndex>
147 <maxIndex>9</maxIndex>
148 </rollingPolicy>
149 <triggeringPolicy
150 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
151 <maxFileSize>5MB</maxFileSize>
152 </triggeringPolicy>
153 <encoder>
154 <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} -
155 %msg%n"</pattern> -->
156 <pattern>${defaultMetricPattern}</pattern>
157 </encoder>
158 </appender>
159
160 <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender">
161 <queueSize>256</queueSize>
162 <appender-ref ref="EELFMetrics"/>
163 </appender>
164
165
166
167
168 <appender name="EELFError"
169 class="ch.qos.logback.core.rolling.RollingFileAppender">
170 <file>${logDirectory}/${errorLogName}.log</file>
171 <rollingPolicy
172 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
173 <fileNamePattern>${logDirectory}/${errorLogName}.%i.log.zip
174 </fileNamePattern>
175 <minIndex>1</minIndex>
176 <maxIndex>9</maxIndex>
177 </rollingPolicy>
178 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
179 <level>ERROR</level>
180 </filter>
181 <triggeringPolicy
182 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
183 <maxFileSize>5MB</maxFileSize>
184 </triggeringPolicy>
185 <encoder>
186 <pattern>${defaultErrorPattern}</pattern>
187 </encoder>
188 </appender>
189
190 <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender">
191 <queueSize>256</queueSize>
192 <appender-ref ref="EELFError"/>
193 </appender>
194
195
196
197 <appender name="EELFDebug"
198 class="ch.qos.logback.core.rolling.RollingFileAppender">
199 <file>${debugLogDirectory}/${debugLogName}.log</file>
200 <rollingPolicy
201 class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
202 <fileNamePattern>${debugLogDirectory}/${debugLogName}.%i.log.zip
203 </fileNamePattern>
204 <minIndex>1</minIndex>
205 <maxIndex>9</maxIndex>
206 </rollingPolicy>
207 <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
Ravindra Bakkamanthala87c95be2017-05-23 14:56:12 -0400208 <level>DEBUG</level>
Pamela Dragosh91d04c62017-02-14 19:41:00 -0500209 </filter>
210 <triggeringPolicy
211 class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
212 <maxFileSize>5MB</maxFileSize>
213 </triggeringPolicy>
214 <encoder>
215 <pattern>${debugLoggerPattern}</pattern>
216 </encoder>
217 </appender>
218
219 <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender">
220 <queueSize>256</queueSize>
221 <appender-ref ref="EELFDebug" />
222 <includeCallerData>true</includeCallerData>
223 </appender>
224
225
226 <!-- ============================================================================ -->
227 <!-- EELF loggers -->
228 <!-- ============================================================================ -->
229
230 <logger name="com.att.eelf.audit" level="info" additivity="false">
231 <appender-ref ref="asyncEELFAudit" />
232 </logger>
233
234 <logger name="com.att.eelf.metrics" level="info" additivity="false">
235 <appender-ref ref="asyncEELFMetrics" />
236 </logger>
237
238 <logger name="com.att.eelf.error" level="error" additivity="false">
239 <appender-ref ref="asyncEELFError" />
240 </logger>
241
242 <logger name="com.att.eelf.debug" level="info" additivity="false">
243 <appender-ref ref="asyncEELFDebug" />
244 </logger>
245
246
247
248 <root level="INFO">
249 <appender-ref ref="asyncEELFDebug" />
250 <appender-ref ref="asyncEELFError" />
251 </root>
252
253</configuration>