Unable to Change the Log Level of Function Pods to Debug Level to View Debug Logs for Source, Sink, and Function for Kubernetes Runtime #23783
Labels
type/enhancement
The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Search before asking
Motivation
The pulsar-functions/runtime-all/src/main/resources/kubernetes_instance_log4j2.xml file is responsible for configuring the log settings for function pods running with the Java runtime, specifically when the functions are deployed as Kubernetes StatefulSets. Currently, this file is hardcoded to use the INFO log level, which limits our ability to adjust logging verbosity for troubleshooting or in-depth monitoring.
As it stands, there doesn't appear to be a straightforward or documented method to change the log level dynamically without modifying the
kubernetes_instance_log4j2.xml
file directly. This presents a challenge, especially when we need more granular logs (e.g., DEBUG level) for specific use cases such as debugging issues with sources, sinks, or function executions.Solution
No response
Alternatives
No response
Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: