Kafka-connect log file limitataion help

kafka-connect log files eating our server full disk space any help how we can limit the size of it ?
Thanks in advance

A quick fix for this is to use log4j’s RollingFileAppender instead of the DailyRollingFileAppender which is likely the default that you are getting. RollingFileAppender only keeps a configured number of files around while DailyRollingFileAppender accumulates log files.

The log4j configuration file is specified to the worker by the log4j.configuration property, e.g., you should see the worker run command containing a property like -Dlog4j.configuration=file:/etc/kafka/connect-log4j.properties. That properties file is where you can change the root logger’s appender. Here is a RollingFileAppender example from the ksqlDB codebase.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.