FrankChen021 commented on issue #10127:
URL: https://github.com/apache/druid/issues/10127#issuecomment-653356710


   Yes after a long time running, the size of log files could be a problem. 
There're two ways to clean the logs
   
   1. use `logrotate` to rotate the log file and then create a `crontab` task 
to delete old enough log files
   
   2. config log4j2 to output log to files so that log files can be deleted 
based on your configurations. 
   to do that, if nodes are started by `broker.sh` or `historical.sh` etc, 
modify the `node.sh` script shell to redirect stdout of java to /dev/null, and 
then change log appender of `log4j2` from console to `RollingFileAppender`
   
   In my opinion, druid should use `RollingFileAppender` in its default 
configuration.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to