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.

How to configure hue log to cut every day

Highlighted

How to configure hue log to cut every day

New Contributor

hi guy 

 

How to configure hue log to cut every day?

1 REPLY 1

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
Don't have an account?
Coming from Hortonworks? Activate your account here