Crates.io | tcplinecombine |
lib.rs | tcplinecombine |
version | 0.1.0 |
source | src |
created_at | 2023-03-05 20:09:48.754434 |
updated_at | 2023-03-05 20:09:48.754434 |
description | Simple CLI tool to collect incoming lines from TCP clients and compress them (without interleaving bytes within lines). |
homepage | |
repository | https://github.com/vi/tcplinecombine |
max_upload_size | |
id | 801691 |
size | 19,170 |
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
.
ARGS:
<listenaddr>
<outputfile>
OPTIONS:
-i, --flush-interval <seconds>
-l, --max-line-length <bytes>
-h, --help
Prints help information.