I have configured the rsyslog on my CentOS-7 server to receive logs from a network device. And, it is receiving logs at the configured file path. But, when the logroatation is done, it creates a new file and zip the existing log file as configured. But the new log file created under the log path is not receiving any logs until and unless the rsyslog service is restarted.
So, to fix this issue I have added the last three lines as in the below logrotate file,
/var/log/PaloAlto/*.log
{
daily
compress
create
rotate 4
postrotate
/usr/bin/systemctl kill -s HUP rsyslog.service >/dev/null 2>&1 || true
endscript
}
But with this configuration, the log rotation is not rotating the files under the log path.