blob: 641541086ba1f6db282121bf786d29222e9c61f1 [file] [log] [blame]
Kajur, Harish (vk250x)d64d7892018-11-26 00:07:25 -05001<!--
2
3 ============LICENSE_START=======================================================
4 org.onap.aai
5 ================================================================================
6 Copyright © 2017 AT&T Intellectual Property. All rights reserved.
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
20
21 ECOMP is a trademark and service mark of AT&T Intellectual Property.
22
23-->
24<configuration>
25 <property name="AJSC_HOME" value="${AJSC_HOME:-.}"/>
26 <appender name="ACCESS"
27 class="ch.qos.logback.core.rolling.RollingFileAppender">
28 <file>${AJSC_HOME}/logs/ajsc-jetty/localhost_access.log</file>
29 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
30 <fileNamePattern>${AJSC_HOME}/logs/ajsc-jetty/localhost_access.log.%d{yyyy-MM-dd}
31 </fileNamePattern>
32 </rollingPolicy>
33 <encoder class="org.onap.aai.logging.CustomLogPatternLayoutEncoder">
34 <Pattern>%a %u %z [%t] "%m %U%q" %s %b %y %i{X-TransactionId} %i{X-FromAppId} %i{X-Forwarded-For} %i{X-AAI-SSL-Client-CN} %i{X-AAI-SSL-Client-OU} %i{X-AAI-SSL-Client-O} %i{X-AAI-SSL-Client-L} %i{X-AAI-SSL-Client-ST} %i{X-AAI-SSL-Client-C} %i{X-AAI-SSL-Client-NotBefore} %i{X-AAI-SSL-Client-NotAfter} %i{X-AAI-SSL-Client-DN} %D</Pattern>
35 </encoder>
36 </appender>
37 <appender-ref ref="ACCESS"/>
38</configuration>
39
40 <!--
41 %a - Remote IP address
42 %A - Local IP address
43 %b - Bytes sent, excluding HTTP headers, or '-' if no bytes were sent
44 %B - Bytes sent, excluding HTTP headers
45 %h - Remote host name
46 %H - Request protocol
47 %l - Remote logical username from identd (always returns '-')
48 %m - Request method
49 %p - Local port
50 %q - Query string (prepended with a '?' if it exists, otherwise an empty string
51 %r - First line of the request
52 %s - HTTP status code of the response
53 %S - User session ID
54 %t - Date and time, in Common Log Format format
55 %u - Remote user that was authenticated
56 %U - Requested URL path
57 %v - Local server name
58 %I - current request thread name (can compare later with stacktraces)
59
60 %z - Custom pattern that parses the cert for the subject
61 %y - Custom pattern determines rest or dme2
62 -->