Issues sending logs to an external log aggregator via FluentD
Issue
- I would like to send a copy of my openshift cluster logs to both the internal ES as well as a fluentd secure forwarder I am finding that when I set the configmap/logging-fluentd to use secure_forward it stops sending logs to my local ES in openshift. Is there a way to send logs to both openshift internal ES as well as send them out to a secure-forwarder?
- We are using an external log aggregator to send our logs from Fluentd. After following the instruction on https://docs.openshift.com/container-platform/3.5/install_config/aggregate_logging.html, we still couldn't set it up correctly.
configmap/logging-fluentd setting
secure-forward.conf: |
@type secure_forward
self_hostname ${HOSTNAME}
shared_key <SECRET_STRING>
secure yes
enable_strict_verification yes
ca_cert_path /etc/pki/ca-trust/source/anchors/ROOT-G2.TXT
# ca_private_key_path /etc/fluent/keys/your_private_key
# for private CA secret key
# ca_private_key_passphrase passphrase
<server>
# or IP
host test.example.com
port 7008
</server>
Environment
- Red Hat OpenShift Container Platform 3.4+
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
