Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

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.

Use from_udp to receive UDP datagrams as structured events containing message data and peer information. For sending, use save_udp with a write operator.

from_udp "0.0.0.0:514"
this = data.parse_syslog()
from {message: "Tenzir"}
write_ndjson
save_udp "1.2.3.4:8080"

Last updated: