用python脚本定时删除主机上的日志非常方便:
import os
import time
while(1):
os.chdir("/dev/dev/log")
os.system("rm * ")
time.sleep(1800)