If your organization uses Kafka, you can configure Rancher to send it Kubernetes logs. Afterwards, you can log into your Kafka server to view logs.
Prerequisite: You must have a Kafka server configured.
Kafka Server Configuration
Select the type of Endpoint your Kafka server is using:
- Zookeeper: Enter the IP address and port. By default, Zookeeper uses port
2181
. Please note that a Zookeeper endpoint cannot enable TLS. - Broker: Click on Add Endpoint. For each Kafka broker, enter the IP address and port. By default, Kafka brokers use port
9092
.
- Zookeeper: Enter the IP address and port. By default, Zookeeper uses port
- In the Topic field, enter the name of a Kafka topic that your Kubernetes cluster submits logs to.
Broker Endpoint Type
SSL Configuration
If your Kafka cluster is using SSL for the Broker, you need to complete the SSL Configuration form.
Provide the Client Private Key and Client Certificate. You can either copy and paste them or upload them by using the Read from a file button.
Provide the CA Certificate PEM. You can either copy and paste the certificate or upload it using the Read from a file button.
Note: Kafka does not support self-signed certificates when client authentication is enabled.
SASL configuration
If your Kafka cluster is using SASL authentication for the Broker, you need to complete the SASL Configuration form.
Enter the SASL Username and Password.
Select the SASL Type that your Kafka cluster is using.
If your Kafka is using Plain, please ensure your Kafka cluster is using SSL.
If your Kafka is using Scram, you need to select which Scram Mechanism Kafka is using.