Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | policy-management |
| 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="debug-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> |
| 32 | |
| 33 | <!-- log file names --> |
| 34 | <property name="errorLogName" value="error" /> |
| 35 | <property name="metricsLogName" value="metrics" /> |
| 36 | <property name="auditLogName" value="audit" /> |
| 37 | <property name="debugLogName" value="debug" /> |
| 38 | <!-- modified time stamp format --> |
| 39 | <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" /> |
| 40 | <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" /> |
Ralph Straubs | 5bd9ff4 | 2017-04-21 04:23:55 -0500 | [diff] [blame] | 41 | <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{CustomField1}|%X{CustomField2}|%X{CustomField3}|%X{CustomField4}|%msg%n" /> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 42 | <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" /> |
| 43 | |
| 44 | <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" /> |
| 45 | |
| 46 | <property name="debugLoggerPattern" value="%d{yyyy-MM-dd'T'HH:mm:ss.SSS+00:00, UTC}|%X{RequestId}|%X{ClassName}|%msg%n" /> |
| 47 | <!-- <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" /> --> |
| 48 | |
| 49 | <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" /> |
| 50 | |
| 51 | <property name="logDirectory" value="${logDir}/${componentName}" /> |
| 52 | <property name="debugLogDirectory" value="${logDir}/${componentName}" /> |
| 53 | |
| 54 | |
| 55 | <!-- Example evaluator filter applied against console appender --> |
| 56 | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
| 57 | <encoder> |
| 58 | <pattern>${defaultPattern}</pattern> |
| 59 | </encoder> |
| 60 | </appender> |
| 61 | |
| 62 | <!-- ============================================================================ --> |
| 63 | <!-- EELF Appenders --> |
| 64 | <!-- ============================================================================ --> |
| 65 | |
| 66 | <!-- The EELFAppender is used to record events to the general application |
| 67 | log --> |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | <!-- EELF Audit Appender. This appender is used to record audit engine |
| 73 | related logging events. The audit logger and appender are specializations |
| 74 | of the EELF application root logger and appender. This can be used to segregate |
| 75 | Policy engine events from other components, or it can be eliminated to record |
| 76 | these events as part of the application root log. --> |
| 77 | |
| 78 | <appender name="EELFAudit" |
| 79 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 80 | <file>${logDirectory}/${auditLogName}.log</file> |
| 81 | <rollingPolicy |
| 82 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 83 | <fileNamePattern>${logDirectory}/${auditLogName}.%i.log.zip |
| 84 | </fileNamePattern> |
| 85 | <minIndex>1</minIndex> |
| 86 | <maxIndex>9</maxIndex> |
| 87 | </rollingPolicy> |
| 88 | <triggeringPolicy |
| 89 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 90 | <maxFileSize>5MB</maxFileSize> |
| 91 | </triggeringPolicy> |
| 92 | <encoder> |
| 93 | <pattern>${defaultAuditPattern}</pattern> |
| 94 | </encoder> |
| 95 | </appender> |
| 96 | <appender name="asyncEELFAudit" class="ch.qos.logback.classic.AsyncAppender"> |
| 97 | <queueSize>256</queueSize> |
| 98 | <appender-ref ref="EELFAudit" /> |
| 99 | </appender> |
| 100 | |
| 101 | <appender name="EELFMetrics" |
| 102 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 103 | <file>${logDirectory}/${metricsLogName}.log</file> |
| 104 | <rollingPolicy |
| 105 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 106 | <fileNamePattern>${logDirectory}/${metricsLogName}.%i.log.zip |
| 107 | </fileNamePattern> |
| 108 | <minIndex>1</minIndex> |
| 109 | <maxIndex>9</maxIndex> |
| 110 | </rollingPolicy> |
| 111 | <triggeringPolicy |
| 112 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 113 | <maxFileSize>5MB</maxFileSize> |
| 114 | </triggeringPolicy> |
| 115 | <encoder> |
| 116 | <!-- <pattern>"%d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - |
| 117 | %msg%n"</pattern> --> |
| 118 | <pattern>${defaultMetricPattern}</pattern> |
| 119 | </encoder> |
| 120 | </appender> |
| 121 | |
| 122 | |
| 123 | <appender name="asyncEELFMetrics" class="ch.qos.logback.classic.AsyncAppender"> |
| 124 | <queueSize>256</queueSize> |
| 125 | <appender-ref ref="EELFMetrics"/> |
| 126 | </appender> |
| 127 | |
| 128 | <appender name="EELFError" |
| 129 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 130 | <file>${logDirectory}/${errorLogName}.log</file> |
| 131 | <rollingPolicy |
| 132 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 133 | <fileNamePattern>${logDirectory}/${errorLogName}.%i.log.zip |
| 134 | </fileNamePattern> |
| 135 | <minIndex>1</minIndex> |
| 136 | <maxIndex>9</maxIndex> |
| 137 | </rollingPolicy> |
| 138 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 139 | <level>ERROR</level> |
| 140 | </filter> |
| 141 | <triggeringPolicy |
| 142 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 143 | <maxFileSize>5MB</maxFileSize> |
| 144 | </triggeringPolicy> |
| 145 | <encoder> |
| 146 | <pattern>${defaultErrorPattern}</pattern> |
| 147 | </encoder> |
| 148 | </appender> |
| 149 | |
| 150 | <appender name="asyncEELFError" class="ch.qos.logback.classic.AsyncAppender"> |
| 151 | <queueSize>256</queueSize> |
| 152 | <appender-ref ref="EELFError"/> |
| 153 | </appender> |
| 154 | |
| 155 | <appender name="EELFDebug" |
| 156 | class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| 157 | <file>${debugLogDirectory}/${debugLogName}.log</file> |
| 158 | <rollingPolicy |
| 159 | class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
| 160 | <fileNamePattern>${debugLogDirectory}/${debugLogName}.%i.log.zip |
| 161 | </fileNamePattern> |
| 162 | <minIndex>1</minIndex> |
| 163 | <maxIndex>9</maxIndex> |
| 164 | </rollingPolicy> |
| 165 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
| 166 | <level>INFO</level> |
| 167 | </filter> |
| 168 | <triggeringPolicy |
| 169 | class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
| 170 | <maxFileSize>5MB</maxFileSize> |
| 171 | </triggeringPolicy> |
| 172 | <encoder> |
| 173 | <pattern>${debugLoggerPattern}</pattern> |
| 174 | </encoder> |
| 175 | </appender> |
| 176 | |
| 177 | <appender name="asyncEELFDebug" class="ch.qos.logback.classic.AsyncAppender"> |
| 178 | <queueSize>256</queueSize> |
| 179 | <appender-ref ref="EELFDebug" /> |
| 180 | <includeCallerData>true</includeCallerData> |
| 181 | </appender> |
| 182 | |
| 183 | |
| 184 | <!-- ============================================================================ --> |
| 185 | <!-- EELF loggers --> |
| 186 | <!-- ============================================================================ --> |
| 187 | |
| 188 | <logger name="com.att.eelf.audit" level="info" additivity="false"> |
| 189 | <appender-ref ref="asyncEELFAudit" /> |
| 190 | </logger> |
| 191 | |
| 192 | <logger name="com.att.eelf.metrics" level="info" additivity="false"> |
| 193 | <appender-ref ref="asyncEELFMetrics" /> |
| 194 | </logger> |
| 195 | |
| 196 | <logger name="com.att.eelf.error" level="error" additivity="false"> |
| 197 | <appender-ref ref="asyncEELFError" /> |
| 198 | </logger> |
| 199 | |
| 200 | <logger name="com.att.eelf.debug" level="info" additivity="false"> |
| 201 | <appender-ref ref="asyncEELFDebug" /> |
| 202 | </logger> |
| 203 | |
| 204 | |
| 205 | |
| 206 | <root level="INFO"> |
| 207 | <appender-ref ref="asyncEELFDebug" /> |
| 208 | <appender-ref ref="asyncEELFError" /> |
| 209 | </root> |
| 210 | |
| 211 | </configuration> |