check file size before log access header