Hey folks! I installed pulsar into my k8s cluster ...
# kubernetes
a
Hey folks! I installed pulsar into my k8s cluster a while ago and now I'm looking to finetune my deployment. one such finetuning that I'm trying to fix is removing the info logs from getting posted to my service. I installed pulsar via helm and have a few values configured in a
values.yaml
file but I can't seem to find one that'll turn off these info logs from posting to my service. Has anyone here had any luck achieving this?
l
You can pass
PULSAR_LOG_LEVEL: warn
in the
configData
key of each Pulsar component to switch the default logging level to
warn
For example
Copy code
broker:
  configData:
    PULSAR_LOG_LEVEL: warn
zookeeper:
  configData:
    PULSAR_LOG_LEVEL: warn
bookkeeper:
  configData:
    PULSAR_LOG_LEVEL: warn
autorecovery:
  configData:
    PULSAR_LOG_LEVEL: warn
proxy:
  configData:
    PULSAR_LOG_LEVEL: warn
a
huge, much appreciated! I'll give this a go
👍 1
Okay gave this a go and it looks like I'm still getting some info logs
2025-08-19 14:18:16.166 INFO  [140296763463360] ConsumerStatsImpl:64
l
did most of the info logging disappear? which pod is that coming from?
a
Doesn't look like it. Its coming from my service that runs as a consumer
l
ok. In your own service, you'd have to configure the logging library that you are using. Pulsar client uses whatever SLF4J implementation is available.
One solution is to use log4j2 and configure it using one of the ways it supports. LLMs are pretty good at giving advice on this type of tasks.
🙏 1
a
Got it. Thanks Lari!