Sends one UDP datagram per input event.
to_udp endpoint:string, [message=string|blob|record]Description
Section titled “Description”Sends one UDP datagram per input event to a fixed remote UDP endpoint.
endpoint: string
Section titled “endpoint: string”The address of the remote endpoint. Must be of the format host:port. The
optional udp:// prefix is accepted but not required.
message = string|blob|record (optional)
Section titled “message = string|blob|record (optional)”An expression that is evaluated once per input event and must produce one of the following types:
stringvalues are sent as UTF-8 bytes.blobvalues are sent verbatim.recordvalues are serialized as compact JSON.nullvalues are skipped with a warning.
All other result types are ignored with a warning.
If you omit message, the operator sends the whole event as compact JSON.
Examples
Section titled “Examples”Send a field as a UDP datagram:
from {message: "hello"}to_udp "127.0.0.1:514", message=messageSend the full event as compact JSON:
from {service: "dns", status: "ok"}to_udp "127.0.0.1:514"