diff options
author | Venkata Harish K Kajur <vk250x@att.com> | 2017-05-12 17:28:40 -0400 |
---|---|---|
committer | Venkata Harish K Kajur <vk250x@att.com> | 2017-05-12 17:30:49 -0400 |
commit | c0e8c47e202ef604b449e72556c8757764744f7d (patch) | |
tree | 9c67ffb0bf962850999e42cae909a31b2b725c7d /aai-resources/ajsc-shared-config/etc/localhost-access-logback.xml | |
parent | 2801d04f58b28ed4bc94cd1263bad7b6784c895e (diff) |
Add all of the resources repo
Change-Id: If2a9c584621f6d01eb70e9c51e05e054ef3486c4
Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
Diffstat (limited to 'aai-resources/ajsc-shared-config/etc/localhost-access-logback.xml')
-rw-r--r-- | aai-resources/ajsc-shared-config/etc/localhost-access-logback.xml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/aai-resources/ajsc-shared-config/etc/localhost-access-logback.xml b/aai-resources/ajsc-shared-config/etc/localhost-access-logback.xml new file mode 100644 index 0000000..5186d55 --- /dev/null +++ b/aai-resources/ajsc-shared-config/etc/localhost-access-logback.xml @@ -0,0 +1,38 @@ +<configuration> + <appender name="ACCESS" + class="ch.qos.logback.core.rolling.RollingFileAppender"> + <file>${AJSC_HOME}/logs/ajsc-jetty/localhost_access.log</file> + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> + <fileNamePattern>${AJSC_HOME}/logs/ajsc-jetty/localhost_access.log.%d{yyyy-MM-dd} + </fileNamePattern> + </rollingPolicy> + <encoder class="org.openecomp.aai.logging.CustomLogPatternLayoutEncoder"> + <Pattern>%a %u %z [%t] "%m %U" %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> + </encoder> + </appender> + <appender-ref ref="ACCESS" /> +</configuration> + +<!-- +%a - Remote IP address +%A - Local IP address +%b - Bytes sent, excluding HTTP headers, or '-' if no bytes were sent +%B - Bytes sent, excluding HTTP headers +%h - Remote host name +%H - Request protocol +%l - Remote logical username from identd (always returns '-') +%m - Request method +%p - Local port +%q - Query string (prepended with a '?' if it exists, otherwise an empty string +%r - First line of the request +%s - HTTP status code of the response +%S - User session ID +%t - Date and time, in Common Log Format format +%u - Remote user that was authenticated +%U - Requested URL path +%v - Local server name +%I - current request thread name (can compare later with stacktraces) + +%z - Custom pattern that parses the cert for the subject +%y - Custom pattern determines rest or dme2 + --> |