Page 1 of 1

How to delete logs?

Posted: Mon May 15, 2017 4:11 pm
by aboka
hi, can anyone please guide us on howto safely delete the logs in SE server? as we are seeing more and more log file in the log file list section.

thank you,

Re: How to delete logs?

Posted: Mon May 15, 2017 5:14 pm
by fenice
You'd have to give a bit more detail such as which operating system you're using to run SE, do you just want to remove them or would you rather rotate them (usually a good idea)?

Re: How to delete logs?

Posted: Thu May 18, 2017 8:18 am
by aboka
fenice wrote:
> You'd have to give a bit more detail such as which operating system you're
> using to run SE, do you just want to remove them or would you rather rotate
> them (usually a good idea)?

hi, sorry for the vague question. we are using Centos 7. we like to delete the old Security Log where we hv no use of them. For eg. 3 month ago.

could we go inside the folder and safely delete them? if yes, could you tell us where is the path to the folder?

thank you,

Re: How to delete logs?

Posted: Thu May 18, 2017 8:36 am
by fenice
If you want to keep logfiles for a specific period then you need to configure logrotate (it should already be installed) to keep them, take a look at this article for a simple explanation: https://www.tecmint.com/install-logrota ... -in-linux/

Re: How to delete logs?

Posted: Thu May 18, 2017 9:47 pm
by aboka
fenice wrote:
> If you want to keep logfiles for a specific period then you need to
> configure logrotate (it should already be installed) to keep them, take a
> look at this article for a simple explanation:
> https://www.tecmint.com/install-logrota ... -in-linux/

hi, thanks for the interesting intro to logrotate. thank you :)