danielwegener / logback-kafka-appender

Logback appender for Apache Kafka

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logs not getting published to kafka topic, no error in console logs too

javatype opened this issue · comments

Hi,

I am using below logback and kafka-appender dependencies-

<dependency>
           <groupId>ch.qos.logback</groupId>
           <artifactId>logback-classic</artifactId>
           <version>1.2.3</version>
       </dependency>
       <dependency>
           <groupId>ch.qos.logback</groupId>
           <artifactId>logback-core</artifactId>
           <version>1.2.3</version>
       </dependency>
       <dependency>
           <groupId>org.slf4j</groupId>
           <artifactId>log4j-over-slf4j</artifactId>
           <version>1.7.9</version>
       </dependency>
     <dependency>
           <groupId>com.github.danielwegener</groupId>
           <artifactId>logback-kafka-appender</artifactId>
           <version>0.2.0-RC1</version>
     </dependency>
     <dependency>
           <groupId>org.apache.kafka</groupId>
           <artifactId>kafka-clients</artifactId>
           <version>2.5.1</version>
       </dependency>

My application runs on tomcat and I have 2 appenders for my logger.
1 appender appends to file and another appends to kafka.
I can see logs in file but similar logger is not able to put it on kafka topic. I dont see any error in catalina.out or console logs for kafka client. Where my logs are going if there are no errors in kafka client? any clue?

Very similar approach i took in spring boot app works fine. I was expecting it to work in similar way in non spring boot app but as there are no errors for Kafka client, I am totally stuck. Please help.

there was issue in kerberos config and logging level of same is WARN.