Those configs are topic-level config names. To configure in server.properties, we need to use server config property names (log.cleanup.policy, log.cleaner.delete.retention.ms etc..).
check the "SERVER DEFAULT PROPERTY" column in the table given in the below link http://kafka.apache.org/documentation/#topicconfigs On Thu, Jun 14, 2018 at 3:51 PM David Espinosa <espi...@gmail.com> wrote: > Hi all, > > I would like to apply log compaction configuration for any topic in my > kafka cluster, as default properties. These configuration properties are: > > - cleanup.policy > - delete.retention.ms > - segment.ms > - min.cleanable.dirty.ratio > > I have tried to place them in the server.properties file, but they are not > applied. I could only apply them when using kafka-topics create topic > command. > > Somebody knows how to apply those properties as default for any topic > created? > > Thanks in advance, > David. >