logrotate: - name: xray-core paths: - /var/log/xray-core/access.log - /var/log/xray-core/error.log options: - daily - rotate 4 - compress - delaycompress - missingok - notifempty - copytruncate