Privitive logging server that accepts incoming line-based messages and stores them to one compressed file.
``` host1$ tcplinecombine 0.0.0.0:1234 output.zstd -i 5 host1: ...
host2$ date | nc 192.168.0.1 1234 ^C host2$ date | nc 192.168.0.1 1234 ^C
host1: Incoming connection from 127.0.0.1:44750 finished serving 127.0.0.1:44750 Incoming connection from 127.0.0.1:44762 finished serving 127.0.0.1:44762 ^C (after waiting for 5 seconds) host1$ zstdcat output.zstd Sun Mar 5 21:05:05 CET 2023 Sun Mar 5 21:05:07 CET 2023 output.zstd : Read error (39) : premature end ```
Download a pre-built executable from Github releases or install from source code with cargo install --path .
or cargo install tcplinecombine
.
tcplinecombine --help output
```
ARGS:
<outputfile>
OPTIONS:
-i, --flush-interval
-l, --max-line-length <bytes>
-h, --help
Prints help information.
```