...
Edit the logging configuration file /home/jtel/jrest/config/log4j2.xml and make sure it points to the required logging directory.
Log Rotation
The following script creates a logrotation configuration to store 14 days of logs, zipping every day:
Code Block |
---|
$ cat << EOFF > /etc/logrotate.d/jrest
rotate 14
daily
missingok
notifempty
compress
dateext
dateformat %Y-%m-%d.
/home/jtel/jrest/log/jtel-jrest.log {
create 644 jtel jtel
}
EOFF |
Firewall
Open the firewall port 8091 as follows:
...