This is an automated email from the ASF dual-hosted git repository.
mxm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new efa3f107 [FLINK-36192][log] instruct how to change log level
dynamically (#911)
efa3f107 is described below
commit efa3f1071690fb05320e624937e4213ad3db8f3c
Author: Luke Chen <[email protected]>
AuthorDate: Tue Nov 19 23:19:29 2024 +0900
[FLINK-36192][log] instruct how to change log level dynamically (#911)
---
docs/content.zh/docs/operations/helm.md | 4 ++++
docs/content.zh/docs/operations/metrics-logging.md | 4 ++++
docs/content/docs/operations/helm.md | 4 ++++
docs/content/docs/operations/metrics-logging.md | 4 ++++
helm/flink-kubernetes-operator/conf/log4j-console.properties | 3 +++
helm/flink-kubernetes-operator/conf/log4j-operator.properties | 3 +++
6 files changed, 22 insertions(+)
diff --git a/docs/content.zh/docs/operations/helm.md
b/docs/content.zh/docs/operations/helm.md
index 54adfde0..16c529a3 100644
--- a/docs/content.zh/docs/operations/helm.md
+++ b/docs/content.zh/docs/operations/helm.md
@@ -56,6 +56,10 @@ To override single parameters you can use `--set`, for
example:
```
helm install --set image.repository=apache/flink-kubernetes-operator --set
image.tag={{< stable >}}{{< version >}}{{< /stable >}}{{< unstable >}}latest{{<
/unstable >}} flink-kubernetes-operator helm/flink-kubernetes-operator
```
+Note, you should escape special characters in your `--set` lines, for example:
+```
+helm install --set
defaultConfiguration."log4j-operator\.properties"=rootLogger.level\=DEBUG
flink-kubernetes-operator helm/flink-kubernetes-operator
+```
You can also provide your custom values file by using the `-f` flag:
```
diff --git a/docs/content.zh/docs/operations/metrics-logging.md
b/docs/content.zh/docs/operations/metrics-logging.md
index 8521cad4..f40c8af9 100644
--- a/docs/content.zh/docs/operations/metrics-logging.md
+++ b/docs/content.zh/docs/operations/metrics-logging.md
@@ -193,9 +193,13 @@ defaultConfiguration:
log4j-operator.properties: |+
# Flink Operator Logging Overrides
# rootLogger.level = DEBUG
+ # The monitor interval in seconds to enable log4j automatic reconfiguration
+ # monitorInterval = 30
log4j-console.properties: |+
# Flink Deployment Logging Overrides
# rootLogger.level = DEBUG
+ # The monitor interval in seconds to enable log4j automatic reconfiguration
+ # monitorInterval = 30
```
{{< hint info >}}
diff --git a/docs/content/docs/operations/helm.md
b/docs/content/docs/operations/helm.md
index 54adfde0..16c529a3 100644
--- a/docs/content/docs/operations/helm.md
+++ b/docs/content/docs/operations/helm.md
@@ -56,6 +56,10 @@ To override single parameters you can use `--set`, for
example:
```
helm install --set image.repository=apache/flink-kubernetes-operator --set
image.tag={{< stable >}}{{< version >}}{{< /stable >}}{{< unstable >}}latest{{<
/unstable >}} flink-kubernetes-operator helm/flink-kubernetes-operator
```
+Note, you should escape special characters in your `--set` lines, for example:
+```
+helm install --set
defaultConfiguration."log4j-operator\.properties"=rootLogger.level\=DEBUG
flink-kubernetes-operator helm/flink-kubernetes-operator
+```
You can also provide your custom values file by using the `-f` flag:
```
diff --git a/docs/content/docs/operations/metrics-logging.md
b/docs/content/docs/operations/metrics-logging.md
index 8521cad4..f40c8af9 100644
--- a/docs/content/docs/operations/metrics-logging.md
+++ b/docs/content/docs/operations/metrics-logging.md
@@ -193,9 +193,13 @@ defaultConfiguration:
log4j-operator.properties: |+
# Flink Operator Logging Overrides
# rootLogger.level = DEBUG
+ # The monitor interval in seconds to enable log4j automatic reconfiguration
+ # monitorInterval = 30
log4j-console.properties: |+
# Flink Deployment Logging Overrides
# rootLogger.level = DEBUG
+ # The monitor interval in seconds to enable log4j automatic reconfiguration
+ # monitorInterval = 30
```
{{< hint info >}}
diff --git a/helm/flink-kubernetes-operator/conf/log4j-console.properties
b/helm/flink-kubernetes-operator/conf/log4j-console.properties
index 6ce93d2d..5fb93a9c 100644
--- a/helm/flink-kubernetes-operator/conf/log4j-console.properties
+++ b/helm/flink-kubernetes-operator/conf/log4j-console.properties
@@ -60,3 +60,6 @@ appender.rolling.strategy.max = 10
# Suppress the irrelevant (wrong) warnings from the Netty channel handler
logger.netty.name =
org.apache.flink.shaded.akka.org.jboss.netty.channel.DefaultChannelPipeline
logger.netty.level = OFF
+
+# The monitor interval in seconds to enable log4j automatic reconfiguration
+# monitorInterval = 30
\ No newline at end of file
diff --git a/helm/flink-kubernetes-operator/conf/log4j-operator.properties
b/helm/flink-kubernetes-operator/conf/log4j-operator.properties
index 14ac8f2b..e6d0318f 100644
--- a/helm/flink-kubernetes-operator/conf/log4j-operator.properties
+++ b/helm/flink-kubernetes-operator/conf/log4j-operator.properties
@@ -32,3 +32,6 @@ logger.conf.level = WARN
# Avoid logging fallback key INFO messages
logger.conf.name = org.apache.flink.configuration.Configuration
logger.conf.level = WARN
+
+# The monitor interval in seconds to enable log4j automatic reconfiguration
+# monitorInterval = 30
\ No newline at end of file