Reply
New Contributor
Posts: 1
Registered: ‎04-25-2019

How to configure hue log to cut every day

hi guy 

 

How to configure hue log to cut every day?

Highlighted
Cloudera Employee
Posts: 723
Registered: ‎07-30-2013

Re: How to configure hue log to cut every day

Hi Sonqi,

The log files configuration is located in desktop/conf/log.conf:
https://github.com/cloudera/hue/blob/master/desktop/conf/log.conf#L51
By default, it is configured to use python's RotatingFileHandler
https://docs.python.org/2/library/logging.handlers.html#rotatingfilehandler
which
is based on the size of the file, but you can change it to use
TimeRotatingFileHandler
https://docs.python.org/2/library/logging.handlers.html#timedrotatingfilehandler