Skip to content
New issue

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

Question: Is it possible to set logger levels using kafka connect rest api? #45

Open
sappusaketh opened this issue Sep 26, 2024 · 7 comments

Comments

@sappusaketh
Copy link

sappusaketh commented Sep 26, 2024

I see there log4j2.xml configuring log levels in that file might work but if I want to temp set log lev for troubleshooting is there a way to do it via rest api?

@OneCricketeer
Copy link
Owner

Log4j doesn't expose a REST API

Refer Kafka Connect documentation for all available REST API endpoints.

@sappusaketh
Copy link
Author

sappusaketh commented Sep 26, 2024

@OneCricketeer
Copy link
Owner

I see. I've not personally tested this.

It should be the exact same since this project doesn't modify the REST API.

@OneCricketeer
Copy link
Owner

Worth mentioning that CONNECT_LOG4J_LOGGERS environment variable is not available for this project; that variable is specific to the Confluent image.

@sappusaketh
Copy link
Author

Ya I tried but I’m not seeing any loggers returned for that endpoint will see what I can find thank you as always for responding quickly

@streamsend-io
Copy link

when the logging level is changed from INFO to DEBUG using the REST API; this is logged; but the logging level does not change:

INFO Setting level of namespace root and children to DEBUG (org.apache.kafka.connect.runtime.Loggers:125)

Seconding sappusaketh's request: do you think it is possible to add adjustable logging levels for this container?

@OneCricketeer
Copy link
Owner

As mentioned, I'm not modifying the REST API of Connect, so all fictionality should be "possible".

I don't know what class actually implements the log feature/endpoint to know if it's available in the container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants