We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Environment Lookup in Log4j2 cannot be processed correctly by KPOps. If we define the log4jConfig in the kafka-app like that:
kafka-app: app: streams: brokers: "${brokers}" schemaRegistryUrl: http://schema-registry:8081 log4jConfig: | <?xml version="1.0" encoding="UTF-8"?> <Configuration> <Appenders> <Console name="Console" target="SYSTEM_OUT"> <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %logger{36} - %msg%n"/> </Console> </Appenders> <Loggers> <Logger additivity="false" level="$${env:STREAMS_LOG_LEVEL:-info}" name="com.bakdata"> <AppenderRef ref="Console"/> </Logger> <Root level="info"> <AppenderRef ref="Console"/> </Root> </Loggers> </Configuration> labels: pipeline: ${pipeline_name_0}
And then use the KPOps generate ... --template the output of the ConfigMap (where the log config lives) looks like this:
KPOps generate ... --template
# Source: streams-app/templates/log4j-configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: my-streams-app-log4j-configmap data: log4j2.xml: | <?xml version="1.0" encoding="UTF-8"?> <Configuration> <Appenders> <Console name="Console" target="SYSTEM_OUT"> <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %logger{36} - %msg%n"/> </Console> </Appenders> <Loggers> <Logger additivity="false" level="${env:STREAMS_LOG_LEVEL:-info}" name="com.bakdata"> <AppenderRef ref="Console"/> </Logger> <Root level="info"> <AppenderRef ref="Console"/> </Root> </Loggers> </Configuration>
The text was updated successfully, but these errors were encountered:
That is because string.Template.substitute sees $$ as an escaped $, hence it removes 1 of the dollar signs.
string.Template.substitute
$$
$
Sorry, something went wrong.
No branches or pull requests
The Environment Lookup in Log4j2 cannot be processed correctly by KPOps. If we define the log4jConfig in the kafka-app like that:
And then use the
KPOps generate ... --template
the output of the ConfigMap (where the log config lives) looks like this:The text was updated successfully, but these errors were encountered: