Page 1 of 1

Safe to clear mod_gearman logs

Posted: Mon Dec 10, 2018 10:18 am
by dkumar
Hi,

mod_gearman_neb.log file on my server has become huge. Just want to confirm if it is safe to clear files mod_gearman_neb.log and mod_gearman_worker.log completely. Just want to be sure.I hope it will not cause any complications.

Re: Safe to clear mod_gearman logs

Posted: Mon Dec 10, 2018 5:17 pm
by npolovenko
@dkumar, You can run the following command:
> mod_gearman_worker.log
This will delete all contents but leave the log file itself.

Re: Safe to clear mod_gearman logs

Posted: Tue Dec 11, 2018 2:37 am
by dkumar
Yes this is what we do to delete all content and leave the blank file only . What i wanted to confirm is that it is safe and will not cause any complications ?
And same can be done on file "mod_gearman_neb.log" ?

Thanks in advance.

Re: Safe to clear mod_gearman logs

Posted: Tue Dec 11, 2018 1:03 pm
by npolovenko
@dkumar, Sorry, yes it's safe to remove both log files. If these logs grow in size fast consider decreasing the debuging level in worker.conf and module.conf configs.

Re: Safe to clear mod_gearman logs

Posted: Wed Dec 12, 2018 1:01 am
by dkumar
Thanks. You can close this case.