Sending Logs to an External Elasticsearch Instance when using Filebeat
Issue
- The configured OCP cluster wants to send all container logs to our
external Elasticsearch environment (ELK 6.1.1). - Therefor trying to use
Filebeatasdaemon-seton all nodes. - However, these pods are looking for json.log files within
/var/lib/docker/containers/<container_name>/. Refer here. - But it looks like cluster sends container logs to
journald
$ sudo grep "OPTIONS" /etc/sysconfig/docker
OPTIONS=' --selinux-enabled --log-driver=journald --signature-verification=False'
- Can the docker settings be changed to
-log-driver=json-fileand apply asystemctl restart dockerto fix this?
Environment
- Openshift Container Platform (OCP)
- 3.7
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.
