seglo / kafka-lag-exporter

Monitor Kafka Consumer Group Latency with Kafka Lag Exporter
Apache License 2.0
649 stars 192 forks source link

How to pass log4j properties to perform logrotation #490

Open panneerselvamd opened 1 year ago

panneerselvamd commented 1 year ago

Hi All,

Is there an option for us to prepare and pass the log rotation instruction to lag exporter like how we use to do for java based apps with log4j.properties ? This would be helpful to control the logs being generated by standalone lag exporter process.

Thanks!

FrVaBe commented 10 months ago

As far as I see this project uses logback (and not log4j) as logging backend. The documentation mentions the parameter -Dlogback.configurationFile=/opt/docker/conf/logback.xml which can be set to determine the logging configuration file. Have a look at the logback configuration documentation (and most of all to the RollingFileAppender) section, if you are looking for log rotation configuration.