Analyzing asterisk logs

Hi,
Is there any Script or tool available for analyzing logs generated by Asterisk. I mean a kind of error reporting by analyzing asterisk logs. If there is no such script available, can anyone advice me on how to make such a script.

Thanks in advance
shiji