[AAI] Reintegrate AAI OOM charts in main repo
[oom.git] / kubernetes / aai / components / aai-schema-service / config / localhost-access-logback.xml
1 <!--
2     ============LICENSE_START=======================================================
3     org.onap.aai
4     ================================================================================
5     Copyright © 2019 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 <configuration>
21         <property name="AJSC_HOME" value="${AJSC_HOME:-.}" />
22         <appender name="ACCESS"
23                 class="ch.qos.logback.core.rolling.RollingFileAppender">
24                 <file>${AJSC_HOME}/logs/ajsc-jetty/localhost_access.log</file>
25                 <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
26                         <fileNamePattern>${AJSC_HOME}/logs/ajsc-jetty/localhost_access.log.%d{yyyy-MM-dd}
27                         </fileNamePattern>
28                 </rollingPolicy>
29                 <encoder class="org.onap.aai.logging.CustomLogPatternLayoutEncoder">
30                         <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>
31                 </encoder>
32         </appender>
33         <appender-ref ref="ACCESS" />
34 </configuration>
35
36 <!-- 
37 %a - Remote IP address
38 %A - Local IP address
39 %b - Bytes sent, excluding HTTP headers, or '-' if no bytes were sent
40 %B - Bytes sent, excluding HTTP headers
41 %h - Remote host name
42 %H - Request protocol
43 %l - Remote logical username from identd (always returns '-')
44 %m - Request method
45 %p - Local port
46 %q - Query string (prepended with a '?' if it exists, otherwise an empty string
47 %r - First line of the request
48 %s - HTTP status code of the response
49 %S - User session ID
50 %t - Date and time, in Common Log Format format
51 %u - Remote user that was authenticated
52 %U - Requested URL path
53 %v - Local server name
54 %I - current request thread name (can compare later with stacktraces)
55
56 %z - Custom pattern that parses the cert for the subject
57 %y - Custom pattern determines rest or dme2
58  -->