Changed around my function. Only had to make some slight modifications. I got rid of crap, cbc and the follow functions and then I changed this button
o = Button(root, text="Start monitoring Log file", command = viewlogfile)
so that it calls this function that I added
def viewlogfile():
f = open('insertfilenamehere', "r")
text = f.read()
tex.insert(tkinter.END, text)
tex.see(tkinter.END)
root.after(3000,viewlogfile)
and then left everything else the same