I have an nfs mount /logfile/project mounted on several of my application server machines. I have 5 jvms running on each machine and I have several machines. the jvms logs are created and rotated every day so it will look like
I would like to create 2 cronjobs
a) go to local directory on each machine and gzip the files everyday
b) move those files to the mountpoint /logfile/project/month-year and rename them to something like "hostname-jvm1-server.log.2010-10-27"
if we could add a check which will make sure the directory exists for each month that would be good too .