Great article. I implemented this in the compute nodes and it works perfect. But how do I use this code to delete Metadata and MidTier server logs ?. In my environment all the servers are linux and the compute node doesn't have access to the log directories of Metadata and Midtier, I cannot mount the filesystems either. Is there a way to run the program on the metadata server itself? Like through the command line options?