I'm running PF on some FreeBSD 11.x installs and I would very much like to have daily logfiles containing the entries that land up in the pflog device.
The FreeBSD installs are all 11.1 or 11.2 (binary, no custom kernel etc).
I'm having trouble switching from "max size" rotation to "once a day, regardless of size" rotation.
My pflog entry in /etc/newsyslog.conf looked like this:
Does this still work for any other logfiles? Considering that the syntax looks good to me at first glance I'm starting to wonder if cron is actually active on your server or if it might have been misconfigured.
What does grep newsys /etc/crontab tell you? And # service cron status?
Well, I'm becoming convinced that the cause for your problems might not be directly related to newsyslog yet could also be something else. Of course based on the information you've been sharing so far.
How did you even conclude that things stopped working? Moved all archives out of the way and then noticed no new ones getting generated? Because I can't really reproduce much problems. Definitely not with the default rules, such as the one for /var/log/messages.
The only theory I have is that a (too?) high number of archives might be picked up incorrectly but that should be testable quite easily.
Perhaps the automatic flush from pflogd occurs at the very same second newsyslog is trying to rotate the file ? (little far fetched and more ppl should've run into this issue I guess )
Ill go looking for a system where I can reproduce this issue (and perhaps try a smaller value of 10 in stead of 90).
/var/log/messages rotated perfectly after the adjustment.
Somebody contacted me in response to a thread on the mailing lists which I started. After a lot of troubleshooting (offering various insights), the culprit was eventually identified as an old shellscript that still ran every 5 minutes that did some sort of rotation attempt as well.
With that shellscript out of the way (which bluntly removed the /var/log/pflog file just before newsyslog's attempt to rotate it) things work just like they should.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.