Skip to main content
Version: Next

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.

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

URL Support

The URL scheme udp:// dispatches to load_udp and save_udp for seamless URL-style use via from and to.

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
}