Logging & Log rotation
Hi Everyone,
I have a couchbase 1.8 cluster, and Im looking at /opt/couchbase/var/lib/couchbase/logs and seeing what appear to be rotated log files.
I was wonder where (if anywhere) I can configure the log rotation / how many are kept. I've check /etc/logrotate.d and there is no couchbase definition in there.
Basically Im trying to make sure the logs dont fill up my hard disk!
There doesnt seem to be anything in the web config, nor can I find any mention of it in the manual or anywhere else in the forum.
Thanks In advance
Dylan
No, It sounds like you are misunderstanding the concept of log rotation. Log rotation doesn't always mean getting rid of log files, or limiting the amount that is logged. It just means that the oldest log files are compressed & potentially stored elsewhere. This stops log files from filling up your hard disk.
Never mind, Ill use logrotate.d.
Thanks
D
Thanks for the info :)
Hi Dylan,
You are absolutely correct and hope this below link will help you.
http://www.thegeekstuff.com/2010/07/logrotate-examples/
Thanks,
Neo-matrix
logs fills aren't that big, don't you think by limiting a log file size , the chances of not logging everything decreases?