I am trying to merge multiple log files from multiple hosts. I do socat -u EXEC:'follow_log_cmd' UNIX-SENDTO:/tmp/socketfor every magazine I want to use.
On a log collecting machine I do socat -u UNIX-RECV:/tmp/socket -
My problem is that journal entries sometimes overlap because socat does not write one line at a time, but instead a buffer at a time.
Is there a way to get him to write one line at a time?
source
share