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