def follow(filename):
    hub = gevent.get_hub()
watcher = hub.loop.stat(filename)
while True:
    hub.wait(watcher)
with open(filename) as f:
    print(f.read())
if __name__ == '__main__':
    jobs = [gevent.spawn(follow, '/var/log/syslog')]
jobs += [gevent.spawn(follow, '/var/log/messages')]
gevent.joinall(jobs)
How to tail a file with gevent