Project

General

Profile

tigase log rotate script tigase-console.log

shailesh j
Added over 3 years ago

Hello Team,

I am using ubuntu server which install tiagse 5.2 tarball. I need to rotate log file daily basis. Can you please guid me? i have been used logrotate but no success.

Regards,

shailesh


Replies (1)

Added by Wojciech Kapcia TigaseTeam over 3 years ago

Regular tigase.log.x are rotated automatically, you can configure size and number of files with following:

basic-conf/logging/java.util.logging.FileHandler.limit=100000000
basic-conf/logging/java.util.logging.FileHandler.count=20

tigase-console.log should not grow above a few KB therefore there shouldn't be any need for rotating the file. If this file keeps growing on your installation then there may be the problem with the setup or the server because this file should only contains logs that are related to extreme problems with the deployment.

    (1-1/1)