in reply to Report filtering

Yeah, the question is far to vague. The answer might be as short as:
while (<$LOG_FILE>) { $error_count++ if /error/i; }
if assuming you know how to do the rest and understand how to use the above. Or it might need much more information if you don't know or understand these things. And we don't know whether you know these things.