log processing scripts