From 11743574aea63db6a561c2787eacb4a197ae684e Mon Sep 17 00:00:00 2001 From: Rommel Pawar Date: Wed, 21 Sep 2022 14:43:40 -0700 Subject: AAI-resources logging structure enhancement Issue-ID: AAI-3524 Signed-off-by: Rommel Pawar Change-Id: I06de1942b3b215d615a7fcad1de6c6889111f912 --- aai-resources/pom.xml | 9 ++ .../main/resources/localhost-access-logback.xml | 16 ++- aai-resources/src/main/resources/logback.xml | 108 ++++++++++++++++----- 3 files changed, 106 insertions(+), 27 deletions(-) diff --git a/aai-resources/pom.xml b/aai-resources/pom.xml index 056bba1..6f8d97d 100644 --- a/aai-resources/pom.xml +++ b/aai-resources/pom.xml @@ -427,6 +427,15 @@ ch.qos.logback logback-access + + org.codehaus.janino + janino + + + net.logstash.logback + logstash-logback-encoder + 6.6 + org.hamcrest hamcrest-junit diff --git a/aai-resources/src/main/resources/localhost-access-logback.xml b/aai-resources/src/main/resources/localhost-access-logback.xml index a318796..48f5f92 100644 --- a/aai-resources/src/main/resources/localhost-access-logback.xml +++ b/aai-resources/src/main/resources/localhost-access-logback.xml @@ -23,18 +23,32 @@ --> + + + + ${AJSC_HOME}/logs/ajsc-jetty/localhost_access.log - ${AJSC_HOME}/logs/ajsc-jetty/localhost_access.log.%d{yyyy-MM-dd} + ${AJSC_HOME}/logs/ajsc-jetty/localhost_access.log.%d{yyyy-MM-dd}.zip + ${maxHistory} + ${totalSizeCap} %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 + + + + %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 - "logType": "access" + + + + -- cgit 1.2.3-korg