As part of my first official Python project, I have created a Log reader which reads Apache server logs from 3 different servers. The log reader application finds the matching Error Key words which appear in the log file such as java.lang.OutOfMemoryError, Java heap space , Index out of bounds etc.
I have written python code to schedule the log reader every 30 minutes and finds the errors which happened in the last 30 minutes and then email the error detail to the specified email ids.
Email is send to certain mail ids by separating it server as well as error wise.
I would like to the best practices one should follow to make a perfect Log reader, Please help.
Thanks in Advance
Chikku Jacob
What I have tried:
My application is now working fine in production, but I am looking for options to make it better. Please share the best practices one should follow for creating such an utility program.