Collecting logs via LogDoc UDP
A lightweight protocol for high-frequency log delivery without connection setup overhead. Best for streaming telemetry, metrics and non-critical data where speed matters more than delivery guarantees.
logdoc-udp.conf
[udp] # LogDoc server address host = logdoc-server port = 12345 # Packet size (65507 bytes max) max_packet_size = 8192 # Message batching batch_size = 100 batch_interval = 1s # Data format format = json
Sending with netcat
# Send a single log over UDP
$ echo '{"level":"INFO","message":"health check"}' | \
nc -u logdoc-server 12345
# Stream logs from a file
$ tail -f /var/log/app.log | \
logdoc-send --proto udp --host logdoc-server --port 12345
When to use UDP
•High-frequency telemetry and metrics where occasional message loss is acceptable
•Debug logging in dev/staging environments with minimal network load
•IoT devices and edge nodes with constrained resources