Skip to content

Connects to a Unix domain socket and receives events.

from_unix_socket path:string {}

Connects to the specified filesystem-backed Unix stream socket as a client and reads bytes from the connection. The nested pipeline parses the byte stream into events.

If the connection fails or reaches EOF, the operator reconnects automatically with exponential backoff.

The Unix domain socket path to connect to. The path may start with ~, which expands to the current user’s home directory. Relative paths are resolved relative to the process working directory.

The operator supports filesystem-backed Unix domain sockets only. It doesn’t support Linux abstract namespace sockets.

The pipeline to run for the Unix domain socket connection. Use this to parse the incoming byte stream into events, for instance { read_json }.

from_unix_socket "/run/collector.sock" {
read_json
}

Last updated: