* Hylton Conacher (ZR1HPC)
THAT is the file I was looking for.It is actually /var/lib/logrotate.status
I assume this file, without having previously read the man page, is a listing of when each log file was last rotated?
that is what appears to me.
I think the man page is wrong giving /var/lib/logrotate/status as the status file when it is actually /var/lib/logrotate.status, or is there a misunderstanding on my part?
agreed.
You asked for more questions Patrick..... :)
I am learning as much as you are here <grin>.
What happens to all the gzip'd log files, or do they just keep rolling over, keeping the same size but deleting the older log information?
from TFM: maxage count Remove rotated logs older than <count> days. The age is only checked if the log file is to be rotated. The files are mailed to the configured address if maillast and mail are configured.
Would a maxage need to be put in each etc/logrotate.d file?
as I read the man file, yes. There is /etc/logrotate.conf which appears to be a *default* configuration, but maxage is not there and I find no man file for logrotate.conf. From browsing /etc/logrotate.d/xxx, it appears that all parameters are presented separately for each entry.
I would assume that if I decide to add some of the options listed in the man page that all I need to do is add them into the /etc/logrotate.conf file to have them implemented on all the log files under logrotate.d control or do I need to add those options to each stanza of each file in /etc/logrotate?
see my previous answer above. When I add/alter entries, I look at the other entries and use what appears to fit my purpose.
What to they mean removed, like deleted? Surely it should just continue to log and have the older entries trimmed from it? Can logrotate be instructed to do this type of logging via /etc/logrotate.conf?
again, I find no documentation for logrotate.conf other that the file itself. Your guess would be as good as mine. Perhaps trial and error will provide an answer here. Looks like your call there as I have the operation, AFAICT, working properly. <grin>..
Can it be said that logrotate just snips and compresses logs? How does it do it ie how many lines/days of log entry are snipped from each log?
Again, from the man file and observation, it appears that compresses, if directed, and moves/renames the result so that your newer logs are written to a pristine file. Again, reading TFM gives you the same understanding, I believe, that it gives me. If nothing else, we will surly gain knowledge from this exchange. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos