Skip to content

Syslog and Kafka TLS

This page explains how to encrypt the log streams that your systems push to QubeSight (syslog and Filebeat's Kafka), what the encryption costs, and how certificate expiry and renewal behave. It covers the transport between the senders and QubeSight; traffic inside a cluster is covered in Security model.

Enterprise

Ingest TLS is available for clusters, which require Enterprise. On a single server in 2.0.110 the push endpoints are plain: syslog on TCP 5140 and Kafka on TCP 9092 with SASL/SCRAM authentication.

Prerequisites

  • A cluster with an Enterprise licence. Ingest TLS is switched on for a running cluster. A single server has no ingest TLS in 2.0.110.
  • Internal Kafka TLS already on. The traffic inside the cluster's Kafka (Redpanda) must already use TLS. A new cluster is created with it; on an older cluster, switch it on first with the control-plane command -cluster-kafka-tls (preview with --plan). Otherwise -cluster-ingest-tls stops with an error saying that internal Kafka TLS is off.
  • No other cluster job running. The command takes the cluster job lock; it refuses to run while an installation, removal or update job is in progress.
  • Every broker member reachable. The command connects to every member that runs a broker and stops if one cannot be reached.
  • Shell access to a full cluster node as a user that can run docker compose exec control-plane ./control-plane … (see Cluster operations and the cluster map).
  • The installation's root certificate for every sender (download link below), and senders that support TLS: Guardium remote logging with encryption, Filebeat with ssl.certificate_authorities, rsyslog or syslog-ng with TLS.
  • Firewall openings from the senders to TCP 6514 and TCP 9093 (or the virtual IP's 19190 + broker id ports) on the cluster nodes and the virtual IP.

What is encrypted

Endpoint Plain With ingest TLS Authentication
Syslog (Guardium, other senders) TCP 5140 TCP 6514 (the syslog-over-TLS port) Source IP allowlist, also on TLS
Kafka for Filebeat TCP 9092 (virtual IP: 19090 + broker id) TCP 9093 (virtual IP: 19190 + broker id) SASL/SCRAM
SNMP traps UDP 162 Not applicable: SNMP has no TLS. Use SNMPv3 with privacy for encryption. Allowlist, community or v3 user

The pulled sources (Event Hub, Kinesis, CloudWatch Logs, the Guardium REST API and archive server) always use TLS or SSH initiated by QubeSight.

Certificates

Each node receives an ingest certificate issued by the installation's root certificate, the same root that signs the web certificate (see Web certificate (HTTPS)). The certificate covers the node address, the virtual IP and the virtual IP's DNS name, and is valid for 5 years. Senders trust the root certificate, so renewing the node certificate needs no change on the senders as long as the root stays the same.

Download the root certificate without signing in from:

https://<qubesight-address>:3000/api/v1/tls/ca.crt

Note

Senders based on OpenSSL do not accept a self-signed leaf certificate as a trust anchor. Always give them the root certificate.

Turn on ingest TLS in a cluster

The change is made with the control-plane cluster command on a cluster node; the exact invocation is described in Cluster operations and the cluster map.

  1. Preview the changes: -cluster-ingest-tls --plan prints the compose differences of every member without changing anything.
  2. Run -cluster-ingest-tls. Internal Kafka TLS must already be on. The command:

    1. connects to every member with a broker and stops if one is unreachable;
    2. writes the ingest certificates;
    3. restarts the brokers one at a time with the TLS listener on 9093 and checks each against the root certificate; a broker that does not come up is reverted;
    4. records the stage; within about 30 seconds every node regenerates its collector configuration with TLS syslog on 6514.

    The plain endpoints stay open. 3. Move the senders to TLS one by one (below). 4. When every sender uses TLS, run -cluster-ingest-tls --only. This removes the plain Kafka listener (9092) and its virtual-IP ports, and rejects plain syslog lines from the network on 5140. QubeSight's own internal forwarding (SNMP listener, reprocessing) keeps using 5140. A sender that has not moved to TLS loses logs from this moment. Rejected lines are counted as rejected sources.

A new cluster created with an existing root certificate starts in the TLS stage with the plain endpoints open.

Move the senders

Guardium (every collector and aggregator), for example:

store remotelog add encrypted daemon.all <virtual-ip>:6514 tcp

Paste the root certificate (PEM) when Guardium asks for it. The exact syntax depends on the Guardium version; check its CLI reference.

Filebeat: the Filebeat page generates the TLS configuration (address on 9093 and ssl.certificate_authorities). Save the root certificate as /etc/filebeat/qubesight-ca.crt. See Filebeat and Kafka ingest.

rsyslog, syslog-ng and other senders: configure TLS to <virtual-ip>:6514 and trust the root certificate.

Verification

  • Platform → System and Cluster → Map marks the encrypted connections; senders arriving on 6514 are counted as TLS.
  • Each sender keeps appearing under Platform → Pipeline → Flow and Data Sources → Source Health.
  • After --only, a test line sent in plain text to 5140 from the network appears under Dropped sources on the allowlist page and is not stored.

Cost of TLS (measured)

Measurements on a test machine, indicative only:

Aspect Result
Steady-state encryption About 1 nanosecond per byte. For syslog parsed by the collector, per-line cost rose by about 1.5 %, within measurement noise. Parsing dominates.
Kafka messages Small extra cost per message; negligible next to parsing.
Connection setup Plain about 0.1 ms; TLS with ECDSA P-256 about 1 ms, RSA-2048 about 1.4 ms, RSA-4096 about 4 ms per connection.

TLS cost is in the handshake, not in the data. Avoid senders that open a new connection for every message, and watch for reconnect storms after a restart: the collector runs with a limited CPU allowance.

Certificate expiry and renewal

  • Expiry is checked by the client at each new handshake. Open sessions keep working after the certificate expires; new or reconnecting senders refuse the connection. The outage therefore starts at an unpredictable moment, when a sender reconnects.
  • QubeSight's per-source silence alert in Source Health notices a sender that stops, but only after its silence threshold (by default about 6 hours for a regular source and 24 hours for a sparse one). Plan renewals ahead of expiry; see Certificates and key rotation.
  • Kafka (Redpanda) reloads changed certificate and key files within about a second, without dropping connections. A mismatched certificate and key pair is refused and the old certificate stays in use.
  • Syslog collector (Vector) does not reload changed files in place. It picks up a new certificate when its configuration points to new file paths, and then drops open sessions; senders reconnect. A restart has the same effect.

Limitations

  • Ingest TLS is not available on a single server in 2.0.110.
  • SNMP traps cannot be carried over TLS.
  • With plain TCP syslog or TLS syslog alike there is no application-level acknowledgement: lines in flight when a node fails can be lost. For zero loss use Filebeat or a sender with a disk queue.
  • The cost figures were measured on a test machine and not repeated on production-class hardware.