Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

kafka log dir

Highlighted

kafka log dir

Explorer

My user wants the output of below command - but from linux.

 

bin/windows/kafka-run-class.bat kafka.tools.DumpLogSegments --files C:/tmp/kafka-logs/test-topic-1/00000000000000000000.log --print-data-log

 

I think I should run  kafka-run-class.sh.

 

But where do i see the specific log file for the topic as above ?

 

I checked in /var/log/kafka - but that only has the log file for kafka itself and not for any specific topic.

 

I don't see any /tmp/kafka-logs in any of the machines that host kafka in the cluster.

 

Appreciate any help.

1 REPLY 1

Re: kafka log dir

Master Guru
A log is a fundamental storage unit in Kafka: https://kafka.apache.org/intro#intro_topics

Its easily confused with a generic service log file.

The log 'data' files reside in the disk directories defined by Kafka - Configuration - 'Data Directories' in Cloudera Manager (log.dirs in a broker's configuration properties).