updated logging strategy by sampling directly from remote machines