Last Updated: February 25, 2016
·
1.297K
· phaus

Openfire Stats File Log Rotate Setting

The Openfire Statistic Plugin uses a file called stats.txt for storing all Stats data.
This file tends to grow very fast. The Plugin itself needs data for the last week, so you can do a weekly Log Rotate to control the Size of that file.

ls -al /usr/share/openfire

...
lrwxrwxrwx  1 openfire openfire   17 Dec  3  2012 logs -> /var/log/openfire
...

cat /etc/logrotate.d/openfire

/var/log/openfire/stats.txt {
    weekly
missingok
rotate 7
delaycompress
copytruncate
notifempty
create 640 openfire openfire
}