Uploaded image for project: 'Docs for Red Hat Developers'
  1. Docs for Red Hat Developers
  2. RHDEVDOCS-2606

[DOCS] Not including secret in Kafka example Forwarding logs to a Kafka broker

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • OpenShift 4.7
    • OpenShift 4.7 Async
    • Logging
    • None
    • devex docs #197 Feb 11-Mar 4
    • 3
    • Undefined
    • ---
    • ---

      [Document URL]
      https://github.com/openshift/openshift-docs/blob/enterprise-4.7/modules/cluster-logging-collector-log-forward-kafka.adochttps://docs.openshift.com/container-platform/4.6/logging/cluster-logging-external.html#cluster-logging-collector-log-forward-kafka_cluster-logging-external
      [Section Number and Name]
      Forwarding logs to a Kafka broker

      [Describe the issue]
      In the example for sending to Kafka, it's possible to read:

      ...
      
      name: infra-logs
       type: kafka
       url: tls://kafka.devlab2.example.com:9093/infra-topic name: audit-logs
       ...

      In the infra-logs endpoint is defined to send using tls, but not secret defined

      [Suggestions for improvement]
      Include in the example the secret to send via tls or use tcp to be insecure. Then, if the example is using TLS, it could be something like:

       

       ...
      
      name: infra-logs
       type: kafka
       url: tls://kafka.devlab2.example.com:9093/infra-topic
       secret:
       name: kafka-secret-devlab2 name: audit-logs
       ...

      Or in the case that we want to show an example for using kafka with tcp:

       

       ...
      
      name: infra-logs
       type: kafka
       url: 
       http://kafka.devlab2.example.com:9093/infra-topic name: audit-logs
       ...

       

      This was reported time ago by me in this BZ#1904372

            rdlugyhe Rolfe Dlugy-Hegwer
            rhn-support-ocasalsa Oscar Casal Sanchez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: