Error configuring GCS bucket as external logging

Summary

Error message indicates a recursive call to the appender ‘SecretMaskRewrite’ when trying to create a Log4j2Appender. Issue seems to be related to building the appender due to errors.


Question

hi all,
i am trying to configure gcs bucket as external logging, after configuring the bucket im getting below error

ERROR Recursive call to appender SecretMaskRewrite
2024-06-05 10:38:04,342 main ERROR Could not create plugin of type class com.van.logging.log4j2.Log4j2Appender for element Log4j2Appender: java.lang.RuntimeException: Cannot build appender due to errors java.lang.RuntimeException: Cannot build appender due to errors
at com.van.logging.log4j2.Log4j2AppenderBuilder.build(Log4j2AppenderBuilder.java:144)
at com.van.logging.log4j2.Log4j2AppenderBuilder.build(Log4j2AppenderBuilder.java:25)
at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:124)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1138)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1063)
at org.apache.logging.log4j.core.appender.routing.RoutingAppender.createAppender(RoutingAppender.java:310)
at org.apache.logging.log4j.core.appender.routing.RoutingAppender.getControl(RoutingAppender.java:282)
main ERROR Unable to create Appender of type Log4j2Appender

Below is my values.yaml

yaml
global:

logs:
gcs:
bucket: <bucket_name>
credentialsJson: <base64 encoded json>
storage:
type: GCS
state:
gcs:
bucket: <bucket_name>
credentialsJson: <base64 encoded json>
storage:
type: GCS
storage:
gcs:
bucket: <bucket_name>
credentialsJson: <base64 encoded json>
type: GCS
bucket:
log: <bucket_name>
state: <bucket_name>
workloadOutput: <bucket_name>
activityPayload: <bucket_name>

worker:

extraEnv:
- name: STATE_STORAGE_GCS_BUCKET_NAME
value: <bucket_name>
- name: STATE_STORAGE_GCS_APPLICATION_CREDENTIALS
value: /secrets/gcs-log-creds/gcp.json
- name: CONTAINER_ORCHESTRATOR_SECRET_NAME
value: ‘airbyte-gcs-log-creds’
- name: CONTAINER_ORCHESTRATOR_SECRET_MOUNT_PATH
value: /secrets/gcs-log-creds/



This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want
to access the original thread.

Join the conversation on Slack

["error", "configuring-gcs-bucket", "log4j2appender", "yaml", "gcs", "bucket", "credentialsjson"]