diff --git a/conf/openmetadata.yaml b/conf/openmetadata.yaml
index dd60e5a17149..793cbc41a79f 100644
--- a/conf/openmetadata.yaml
+++ b/conf/openmetadata.yaml
@@ -99,6 +99,8 @@ logging:
timeZone: UTC
- type: file
logFormat: "%level [%d{ISO8601,UTC}] [%t] %logger{5} - %msg%n"
+ layout:
+ type: json
currentLogFilename: ./logs/openmetadata-operations.log
archivedLogFilenamePattern: ./logs/openmetadata-operations-%d{yyyy-MM-dd}-%i.log.gz
archivedFileCount: 7
@@ -110,6 +112,9 @@ logging:
logFormat: "%level [%d{ISO8601,UTC}] [%t] %logger{5} - %msg%n"
timeZone: UTC
- type: file
+ layout:
+ type: json
+ appendLineSeparator: true
filterFactories:
- type: audit-exclude-filter-factory
threshold: TRACE
@@ -120,6 +125,9 @@ logging:
timeZone: UTC
maxFileSize: 50MB
- type: file
+ layout:
+ type: json
+ appendLineSeparator: true
filterFactories:
- type: audit-only-filter-factory
threshold: TRACE
diff --git a/openmetadata-service/pom.xml b/openmetadata-service/pom.xml
index cab64538687a..4a8a0a552abd 100644
--- a/openmetadata-service/pom.xml
+++ b/openmetadata-service/pom.xml
@@ -131,6 +131,10 @@
io.github.maksymdolgykh.dropwizard
dropwizard-micrometer-jdbi
+
+ io.dropwizard
+ dropwizard-json-logging
+
commons-lang
commons-lang
diff --git a/pom.xml b/pom.xml
index 751d468c61bd..7aadbd90e25e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -257,6 +257,11 @@
logback-classic
${logback-classic.version}
+
+ io.dropwizard
+ dropwizard-json-logging
+ ${dropwizard.version}
+
org.awaitility
awaitility