Logging Druid processes

Hi everyone,

I want to configure a separate log file for each druid daemon like middlemanager.log , coordinator.log etc.
I found log4j2.xml with the package which enable me to log the processes separately but logs became so large overtme. So I added the configuration of daily logging strategy to rollover the file at the end of the day and also compress it using filePattern attribute. But, it seems in doing so zip file is created at the end of the day but the complete log of the whole day is not available there as the file created is too small and logs that are generated during the day is too large.

I dont understand what is the problem here. Please help me out. My log4j2.xml configuration is as follows:

<?xml version="1.0" encoding="UTF-8" ?>

<RollingFile name=“RollingFile” fileName="{PATH}/middleManager.log"

filePattern="{PATH}/middleManager.%d{yyyy-MM-dd}.log.gz">

Thanks

Shamshad Ahmed Khan