From c9fad710ea31ae6695c3914429266621d37ce8b8 Mon Sep 17 00:00:00 2001 From: Harish Venkata Kajur Date: Wed, 4 Mar 2020 21:02:23 -0500 Subject: Fix the graphadmin logback issue Issue-ID: AAI-2751 Change-Id: Icce232aab798c2c1d2a072a5cbf040403879a48b Signed-off-by: Harish Venkata Kajur --- .../resources/config/application.properties | 2 +- .../aai-graphadmin/resources/config/logback.xml | 822 +++++++++++++++------ components/aai-graphadmin/values.yaml | 4 + 3 files changed, 588 insertions(+), 240 deletions(-) (limited to 'components') diff --git a/components/aai-graphadmin/resources/config/application.properties b/components/aai-graphadmin/resources/config/application.properties index c23c5fa..7ff65c9 100644 --- a/components/aai-graphadmin/resources/config/application.properties +++ b/components/aai-graphadmin/resources/config/application.properties @@ -29,7 +29,7 @@ spring.jersey.type=filter server.contextPath=/ spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration -spring.profiles.active={{ .Values.global.config.profiles.active }} +spring.profiles.active={{ .Values.config.profiles.active }} spring.jersey.application-path=${schema.uri.base.path} #The max number of active threads in this pool server.tomcat.max-threads=200 diff --git a/components/aai-graphadmin/resources/config/logback.xml b/components/aai-graphadmin/resources/config/logback.xml index e5e6ab5..553de3f 100644 --- a/components/aai-graphadmin/resources/config/logback.xml +++ b/components/aai-graphadmin/resources/config/logback.xml @@ -1,3 +1,4 @@ + - - - - + + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - %clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx} - + %clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx} + - ${logDirectory}/rest/sane.log @@ -54,40 +66,30 @@ %d{HH:mm:ss.SSS} [%thread] %-5level %logger{1024} - %msg%n - + - 1000 true - + - - - - INFO - ACCEPT - DENY - + ${logDirectory}/rest/metrics.log ${logDirectory}/rest/metrics.log.%d{yyyy-MM-dd} - + - - ${eelfMetricLogPattern} + + ${metricPattern} 1000 true - + - - + DEBUG ACCEPT @@ -95,61 +97,49 @@ ${logDirectory}/rest/debug.log - ${logDirectory}/rest/debug.log.%d{yyyy-MM-dd} - + ${logDirectory}/rest/debug.log.%d{yyyy-MM-dd} - - ${eelfLogPattern} + + ${debugPattern} - 1000 + true - - - - - WARN - + ${logDirectory}/rest/error.log - ${logDirectory}/rest/error.log.%d{yyyy-MM-dd} - + ${logDirectory}/rest/error.log.%d{yyyy-MM-dd} - - ${"eelfErrorLogPattern"} + + WARN + + + ${errorPattern} - 1000 - true - + - - + ${logDirectory}/rest/audit.log ${logDirectory}/rest/audit.log.%d{yyyy-MM-dd} - + - - ${eelfAuditLogPattern} + + ${auditPattern} - 1000 true - + - - + DEBUG ACCEPT @@ -158,36 +148,46 @@ ${logDirectory}/rest/translog.log ${logDirectory}/rest/translog.log.%d{yyyy-MM-dd} - + - - ${eelfTransLogPattern} + + ${transLogPattern} - 1000 true - + - - + WARN ${logDirectory}/dmaapAAIEventConsumer/error.log ${logDirectory}/dmaapAAIEventConsumer/error.log.%d{yyyy-MM-dd} - + - - ${"eelfErrorLogPattern"} + + ${"errorPattern"} - - + + + INFO + ACCEPT + DENY + + ${logDirectory}/dmaapAAIEventConsumer/dmaap-transaction.log + + ${logDirectory}/dmaapAAIEventConsumer/dmaap-transaction.log.%d{yyyy-MM-dd} + + + + ${debugPattern} + + + DEBUG ACCEPT @@ -196,14 +196,13 @@ ${logDirectory}/dmaapAAIEventConsumer/debug.log ${logDirectory}/dmaapAAIEventConsumer/debug.log.%d{yyyy-MM-dd} - + - - ${eelfLogPattern} + + ${debugPattern} - + INFO ACCEPT @@ -212,27 +211,25 @@ ${logDirectory}/dmaapAAIEventConsumer/metrics.log ${logDirectory}/dmaapAAIEventConsumer/metrics.log.%d{yyyy-MM-dd} - + - - ${eelfMetricLogPattern} + + ${metricPattern} - + WARN ${logDirectory}/external/external.log ${logDirectory}/external/external.log.%d{yyyy-MM-dd} - + - - ${eelfLogPattern} + + ${debugPattern} - @@ -242,11 +239,10 @@ ${logDirectory}/dataGrooming/error.log.%d{yyyy-MM-dd} - - ${eelfErrorLogPattern} + + ${errorPattern} - DEBUG @@ -257,28 +253,25 @@ ${logDirectory}/dataGrooming/debug.log.%d{yyyy-MM-dd} - - ${eelfLogPattern} + + ${debugPattern} - - + INFO ACCEPT DENY - ${logDirectory}/dataGrooming/metrics.log + ${logDirectory}/dataGrooming/audit.log - ${logDirectory}/dataGrooming/metrics.log.%d{yyyy-MM-dd} + ${logDirectory}/dataGrooming/audit.log.%d{yyyy-MM-dd} - - ${eelfMetricLogPattern} + + ${auditPattern} - - @@ -288,11 +281,10 @@ ${logDirectory}/dataSnapshot/error.log.%d{yyyy-MM-dd} - - ${eelfErrorLogPattern} + + ${errorPattern} - DEBUG @@ -303,28 +295,67 @@ ${logDirectory}/dataSnapshot/debug.log.%d{yyyy-MM-dd} - - ${eelfLogPattern} + + ${debugPattern} - - + INFO ACCEPT DENY - ${logDirectory}/dataSnapshot/metrics.log + ${logDirectory}/dataSnapshot/audit.log - ${logDirectory}/dataSnapshot/metrics.log.%d{yyyy-MM-dd} + ${logDirectory}/dataSnapshot/audit.log.%d{yyyy-MM-dd} - - ${eelfMetricLogPattern} + + ${auditPattern} - - + + + + WARN + + ${logDirectory}/historyTruncate/error.log + + ${logDirectory}/historyTruncate/error.log.%d{yyyy-MM-dd} + + + ${errorPattern} + + + + + DEBUG + ACCEPT + DENY + + ${logDirectory}/historyTruncate/debug.log + + ${logDirectory}/historyTruncate/debug.log.%d{yyyy-MM-dd} + + + ${debugPattern} + + + + + INFO + ACCEPT + DENY + + ${logDirectory}/historyTruncate/audit.log + + ${logDirectory}/historyTruncate/audit.log.%d{yyyy-MM-dd} + + + ${auditPattern} + + + @@ -334,11 +365,10 @@ ${logDirectory}/createDBSchema/error.log.%d{yyyy-MM-dd} - - ${"eelfErrorLogPattern"} + + ${"errorPattern"} - DEBUG @@ -349,11 +379,10 @@ ${logDirectory}/createDBSchema/debug.log.%d{yyyy-MM-dd} - - ${eelfLogPattern} + + ${debugPattern} - INFO @@ -364,12 +393,11 @@ ${logDirectory}/createDBSchema/metrics.log.%d{yyyy-MM-dd} - - ${eelfMetricLogPattern} + + ${metricPattern} - - + @@ -379,11 +407,10 @@ ${logDirectory}/misc/error.log.%d{yyyy-MM-dd} - - ${"eelfErrorLogPattern"} + + ${"errorPattern"} - DEBUG @@ -394,72 +421,158 @@ ${logDirectory}/misc/debug.log.%d{yyyy-MM-dd} - - ${eelfLogPattern} + + ${debugPattern} - - + INFO ACCEPT DENY - ${logDirectory}/misc/metrics.log + ${logDirectory}/misc/audit.log + + ${logDirectory}/misc/audit.log.%d{yyyy-MM-dd} + + + ${auditPattern} + + + + + + + DEBUG + ACCEPT + DENY + + ${logDirectory}/dupetool/debug.log - ${logDirectory}/misc/metrics.log.%d{yyyy-MM-dd} + ${logDirectory}/dupetool/debug.log.%d{yyyy-MM-dd} - - ${eelfMetricLogPattern} + + ${debugPattern} - - - - + + + WARN + ACCEPT + DENY + + ${logDirectory}/dupeTool/error.log + + ${logDirectory}/dupeTool/error.log.%d{yyyy-MM-dd} + + + ${errorPattern} + + + + + WARN - ${logDirectory}/pullInvData/error.log + ${logDirectory}/dynamicPayloadGenerator/error.log - ${logDirectory}/pullInvData/error.log.%d{yyyy-MM-dd} + ${logDirectory}/dynamicPayloadGenerator/error.log.%d{yyyy-MM-dd} - - ${"eelfErrorLogPattern"} + + ${errorPattern} - - + DEBUG ACCEPT DENY - ${logDirectory}/pullInvData/debug.log + ${logDirectory}/dynamicPayloadGenerator/debug.log - ${logDirectory}/pullInvData/debug.log.%d{yyyy-MM-dd} + ${logDirectory}/dynamicPayloadGenerator/debug.log.%d{yyyy-MM-dd} - - ${eelfLogPattern} + + ${debugPattern} - - + INFO ACCEPT DENY - ${logDirectory}/pullInvData/metrics.log + ${logDirectory}/dataExport/audit.log + + ${logDirectory}/dynamicPayloadGenerator/audit.log.%d{yyyy-MM-dd} + + + ${auditPattern} + + + + + + + DEBUG + ACCEPT + DENY + + ${logDirectory}/forceDelete/debug.log + + ${logDirectory}/forceDelete/debug.log.%d{yyyy-MM-dd} + + + ${debugPattern} + + + + + WARN + ACCEPT + DENY + + ${logDirectory}/forceDelete/error.log + + ${logDirectory}/forceDelete/error.log.%d{yyyy-MM-dd} + + + ${errorPattern} + + + + + + + DEBUG + ACCEPT + DENY + + ${logDirectory}/migration/debug.log - ${logDirectory}/pullInvData/metrics.log.%d{yyyy-MM-dd} + ${logDirectory}/migration/debug.log.%d{yyyy-MM-dd} - - ${eelfMetricLogPattern} + + ${debugPattern} - - + + + WARN + ACCEPT + DENY + + ${logDirectory}/migration/error.log + + ${logDirectory}/migration/error.log.%d{yyyy-MM-dd} + + + ${errorPattern} + + + + WARN @@ -468,11 +581,10 @@ ${logDirectory}/dataExport/error.log.%d{yyyy-MM-dd} - - ${eelfErrorLogPattern} + + ${errorPattern} - DEBUG @@ -483,132 +595,364 @@ ${logDirectory}/dataExport/debug.log.%d{yyyy-MM-dd} - - ${eelfLogPattern} + + ${debugPattern} - - + + + INFO + ACCEPT + DENY + + ${logDirectory}/dataExport/audit.log + + ${logDirectory}/dataExport/audit.log.%d{yyyy-MM-dd} + + + ${auditPattern} + + + + + + DEBUG + ACCEPT + DENY + + ${logDirectory}/schemaMod/debug.log + + ${logDirectory}/schemaMod/debug.log.%d{yyyy-MM-dd} + + + ${debugPattern} + + + + + WARN + ACCEPT + DENY + + ${logDirectory}/schemaMod/error.log + + ${logDirectory}/schemaMod/error.log.%d{yyyy-MM-dd} + + + ${errorPattern} + + + + + + + DEBUG + ACCEPT + DENY + + ${logDirectory}/uniquePropertyCheck/debug.log + + ${logDirectory}/uniquePropertyCheck/debug.log.%d{yyyy-MM-dd} + + + ${debugPattern} + + + + + INFO + ACCEPT + DENY + + ${logDirectory}/uniquePropertyCheck/metrics.log + + ${logDirectory}/uniquePropertyCheck/metrics.log.%d{yyyy-MM-dd} + + + ${metricPattern} + + + + + WARN + ACCEPT + DENY + + ${logDirectory}/uniquePropertyCheck/error.log + + ${logDirectory}/uniquePropertyCheck/error.log.%d{yyyy-MM-dd} + + + ${errorPattern} + + + + + + + WARN + + ${logDirectory}/dynamicPayloadGenerator/error.log + + ${logDirectory}/dynamicPayloadGenerator/error.log.%d{yyyy-MM-dd} + + + ${errorPattern} + + + + + DEBUG + ACCEPT + DENY + + ${logDirectory}/dynamicPayloadGenerator/debug.log + + ${logDirectory}/dynamicPayloadGenerator/debug.log.%d{yyyy-MM-dd} + + + ${debugPattern} + + + INFO ACCEPT DENY - ${logDirectory}/dataExport/metrics.log + ${logDirectory}/dataExport/audit.log - ${logDirectory}/dataExport/metrics.log.%d{yyyy-MM-dd} + ${logDirectory}/dynamicPayloadGenerator/audit.log.%d{yyyy-MM-dd} - - ${eelfMetricLogPattern} + + ${auditPattern} - + - - - - + + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + ${logDirectory}/perf-audit/Audit-${lrmRVer}-${lrmRO}-${Pid}.log + + + ${logDirectory}/perf-audit/Audit-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip + + 1 + 9 + + + 5MB + + + auditPattern + + + + + ${logDirectory}/perf-audit/Perform-${lrmRVer}-${lrmRO}-${Pid}.log + + + ${logDirectory}/perf-audit/Perform-${lrmRVer}-${lrmRO}-${Pid}.%i.log.zip + + 1 + 9 + + + 5MB + + + "%d [%thread] %-5level %logger{1024} - %msg%n" + + + + + DEBUG + + ${logDirectory}/auth/auth.log + + ${logDirectory}/auth/auth.log.%d{yyyy-MM-dd} + + + + %d{yyyy-MM-dd'T'HH:mm:ss.SSSZ, UTC}[%thread] %-5level %logger{1024} - %msg%n + + + + 1000 + true + + + + - - + + + + + + + + + + + + + + + + + - - + - + + + + + + + + + - - - + + + - - + - + + + + + - + - - - + + + + + + + + + - - - - - - + + + + + + + + + - - - - - - + + + + + + + - + - - - - - - + + + + + - - - + + + - - - {{ if .Values.global.config.logback.console.enabled }} - - {{ end }} + + diff --git a/components/aai-graphadmin/values.yaml b/components/aai-graphadmin/values.yaml index c679380..6fa9767 100644 --- a/components/aai-graphadmin/values.yaml +++ b/components/aai-graphadmin/values.yaml @@ -38,6 +38,10 @@ replicaCount: 1 # Configuration for the graphadmin deployment config: + # Specify the profiles for the graphadmin microservice + profiles: + active: "dmaap,one-way-ssl" + # Specifies the timeout limit for the REST API requests timeout: enabled: true -- cgit 1.2.3-korg