rancher: cannot ship logs to elasticsearch

Describe your issue here

I have created a cluster in AWS, and try to config the cluster to ship logs to es. I’ve tried aws es and es cloud service, neither worked, there is no error showing in the UI, but I can’t find any new index in the es.


Useful Info
Versions Rancher v2.0.0 UI: v2.0.41
Access local admin
Route containers.index

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 31 (10 by maintainers)

Most upvoted comments

a workaround in the cloudconfig for RancherOS.

#cloud-config
ssh_authorized_keys:
- <SSH_KEY>
write_files:
  - path: /etc/rc.local
    permissions: "0755"
    owner: root
    content: |
      #!/bin/bash
      rm -rf /var/log/containers /var/log/pods /var/lib/rancher/rke/log
      mkdir -p /var/lib/rancher/rke /opt/rke/var/log/containers /opt/rke/var/log/pods /opt/rke/var/lib/rancher/rke/log
      ln -s /opt/rke/var/log/containers /var/log/containers
      ln -s /opt/rke/var/log/pods /var/log/pods
      ln -s /opt/rke/var/lib/rancher/rke/log /var/lib/rancher/rke/log
      <DOCKER_RUN_COMMAND>
rancher:
  docker:
    engine: docker-17.03.2-ce