Try this
#!/usr/bin/python
import time;
cmp=time.time()-(24*60*60)
file = open("error.logs", "r")
for line in file:
log=time.mktime(time.strptime(line.rstrip().split(',')[0], '%d %b %Y %H:%M:%S'))
if(log>=cmp):
print line.rstrip()
file.close()