Service log files are located in the /var/log/service-name folder.
EVI services do not perform automatic log rotation.
To configure rotation, use the logrotate utility according to your system requirements.
Example of configuration for rotating the file /var/log/evi-core/evi-core.log.
Configuration file /etc/logrotate.d/evi-core.log
/var/log/evi-core/evi-core.log
{
hourly
size 100M
dateext
dateformat -%Y-%m-%d_%H-%s
missingok
rotate 15
copytruncate
compress
notifempty
}
Explanation of parameters:
| Parameter | Description |
|---|---|
| hourly | rotation every hour |
| size 100M | rotation when reaching a size of 100 MB |
| dateext | adding a date to the name of an archive log |
| dateformat | date format in file name |
| missingok | not an error if the file is missing |
| rotate 15 | store up to 15 backup copies |
| copytruncate | copy and trim the current log (without rebooting the service) |
| notifempty | do not rotate if the log is empty |