Skip to content

UDP

The User Datagram Protocol (UDP) is a connection-less protocol to send messages on an IP network. Tenzir supports writing to and reading from UDP sockets, both in server (listening) and client (connect) mode.

ServerconnectSend (listen)Clientudp://1.2.3.4Send (connect)udp://1.2.3.4udp://5.6.7.8udp://5.6.7.8Receive (connect)Receive (listen)

Use the IP address 0.0.0.0 to listen on all available network interfaces.

Examples

Accept Syslog messages over UDP

from "udp://127.0.0.1:541", insert_newlines=true {
read_syslog
}

Send events to a UDP socket

from {message: "Tenzir"}
to "udp://1.2.3.4:8080" {
write_ndjson
}