weizhouapache commented on pull request #5331:
URL: https://github.com/apache/cloudstack/pull/5331#issuecomment-902131620


   > > > @weizhouapache the logrotate service should be able to take care of 
this right rather than adding a new shell script? we can specify the duration 
to keep the logs also
   > > 
   > > 
   > > @ravening no. logrorate will rotate the log files in /var/log
   > 
   > @weizhouapache but we can add an extra rule to monitor /var/cache also 
right?
   
   @ravening the problem is, we do not know what the filenames are. 
   here is an example
   ```
   root@r-88-VM:~# ls -l /var/cache/cloud/processed/
   total 24
   -rw-r--r-- 1 root root 239 Aug 19 07:44 
vm_dhcp_entry.json.82cf8311-f5d4-4a10-9b50-001e0558082a.gz
   -rw-r--r-- 1 root root 239 Aug 19 07:42 
vm_dhcp_entry.json.ef071140-60d8-4a20-970d-ca4979aee9f5.gz
   -rw-r--r-- 1 root root 406 Aug 19 07:44 
vm_metadata.json.26853b78-280b-4ea5-94b2-55e83bb332e4.gz
   -rw-r--r-- 1 root root 406 Aug 19 07:42 
vm_metadata.json.27cbd5c6-43b8-417f-8c1d-e51fc697ce10.gz
   -rw-r--r-- 1 root root 160 Aug 19 07:42 
vm_password.json.08296973-3f9a-4fb5-ac75-d9c9c9c9c8fb.gz
   -rw-r--r-- 1 root root 160 Aug 19 07:44 
vm_password.json.dea5c53d-043a-43f1-980c-f904a1e7b5b7.gz
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to