By: Quintin Kerby user 08 Jan 2019 at 4:08 p.m. CST

4 Responses
Quintin Kerby gravatar
In referencing the following documentation https://gluu.org/docs/ce/3.1.2/operation/logs/#clearing-logs I ran the following statement in our lower environment with the following response ``` [root@-anonymous-gluu-server ~]# service gluu-server-3.1.2 clear-logs The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl. ``` Any guidance?

By Thomas Gasmyr Mougang staff 09 Jan 2019 at 12:29 a.m. CST

Thomas Gasmyr Mougang gravatar
Hey Kerby, The command **service gluu-server-3.1.2 clear-logs** is not supported on Cent0S. That feature is a work in progress, currently the future is supported only on distribution with init script like Ubuntu.

By Quintin Kerby user 09 Jan 2019 at 8:47 a.m. CST

Quintin Kerby gravatar
Is there a prescribed way to maintain and/or rotate Gluu logs on CentOS?

By Mohib Zico staff 11 Jan 2019 at 12:27 p.m. CST

Mohib Zico gravatar
Hi Quintin, >> Is there a prescribed way to maintain and/or rotate Gluu logs on CentOS? yes, there is a script named 'logmanager.sh' inside `/opt/gluu/bin/` of container. You can customize it and run from root cronjob.

By Quintin Kerby user 11 Jan 2019 at 1:28 p.m. CST

Quintin Kerby gravatar
Perfect. Thank you!