I want to stream log file using python. each log will be checked, if the log record contain any word (e.g. Error) it'll triggered an event. It'll be like this...
python script load a log file -> checking every log (triggered an event if defined condition occurs) -> keep running and waiting for new log -> repeat checking for new log
as my explore about this, i still cant get it about how to waiting new log and checking the new log (if come up a new log). is it possible to implement this with python? Any suggestions to do this? Thanks.