5

sync chunk of log changes to a new file on a different machine (real-time)

view full story
linux-howto

http://serverfault.com – Some context: The log is being used for user actions analytics. I need this for real-time processing and persistence of messages, think of Google Analytics implementation, obivously with different needs. Going over the rotated file is obviously needed (more for offline processing and making sure I didn't missed data), but it's easy to take care of. My question is more for the real-time analytics part. I need to see the data as it's being written to the log file. Ideally, I would like to submit entries generated in the last X seconds (say 30 seconds) to a different machine (as new file) and (HowTos)