Score:0

rsyslog is not capturing logs from remote server post log rotation

au flag

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.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.