Socket Input
Listens on a TCP, UDP, or Unix socket for incoming data.
How it works
- Binds to the configured address using the specified socket mode.
- TCP: accepts connections and reads newline-delimited data.
- UDP: receives datagrams and processes each line.
- Unix: accepts connections on a Unix domain socket (unix only).
- Namespace convention:
socket.{mode}.{address}.
Configuration
yaml
data_sources:
source:
Socket:
mode: tcp
address: "0.0.0.0:9000"
framing: newlineConfiguration variables
| Variable | Default | Description |
|---|---|---|
mode | (required) | tcp, udp, or unix |
address | (required) | Bind address (host:port or socket path) |
framing | newline | Frame delimiter (newline or bytes) |
format | json | Data format |
Authentication
No connector-specific authentication is required.
Troubleshooting
| Symptom | Fix |
|---|---|
| address already in use | Choose a different port or stop the process currently bound to that address. |
| no data arriving | Check the sender target address, protocol mode, and any host firewall rules. |
