Python program to search DNS failure logs