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