Skip to content

save_tcp

Saves bytes to a TCP or TLS connection.

save_tcp endpoint:string, [tls=bool, cacert=string, certifle=string,
keyfile=string, skip_peer_verification=bool]

Saves bytes to the given endpoint via TCP or TLS.

The endpoint to which the server will connect. Must be of the form [tcp://]<hostname>:<port>.

Enables TLS.

Defaults to false.

Path to the CA certificate used to verify the server’s certificate.

Defaults to the Tenzir configuration value tenzir.cacert, which in turn defaults to a common cacert location for the system.

Path to the client certificate.

Path to the key for the client certificate.

Toggles TLS certificate verification.

Defaults to false.

Transform incoming Syslog to BITZ and save over TCP

Section titled “Transform incoming Syslog to BITZ and save over TCP”
load_tcp "0.0.0.0:8090" { read_syslog }
write_bitz
save_tcp "127.0.0.1:4000"
subscribe "feed"
write_json
save_tcp "127.0.0.1:4000", tls=true, skip_peer_verification=true