How to change memcached log directory


#1

I want to store logs from couchbase in an other directory than the default one. So I change {error_logger_mf_dir, option.
It works great for couchbase logs but memcache log are still written to /opt/couchbase/var/lib/couchbase/logs
What dit I missed ?

Thanks


#2

You could try making the entire logs directory a symbolic linkā€¦

On linux:

mv /opt/couchbase/var/lib/couchbase/logs /another/directory
ln -s /opt/couchbase/var/lib/couchbase/logs /another/directory

You may want to shut down couchbase-server while you do this.


#3

Actually that should be:

mv /opt/couchbase/var/lib/couchbase/logs /another/directory
ln -s /another/directory /opt/couchbase/var/lib/couchbase/logs

The link and the directory are switched in my first comment.