I installed ECK from the guide(see the reply bellow):
Deploy ECK in your Kubernetes cluster | Elastic Cloud on Kubernetes [2.13] | Elastic
Elasticsearch and Kibana are working well.
I want to use filebeat to send container logs to Elasticsearch by this guide(see the reply bellow):
Run Filebeat on Kubernetes | Filebeat Reference [8.14] | Elastic
The setting in filebeat-kubernetes.yaml
maybe need change to:
- name: ELASTICSEARCH_HOST
value: https://quickstart-es-http.elastic-system.svc.cluster.local
- name: ELASTICSEARCH_PORT
value: '9200'
- name: ELASTICSEARCH_USERNAME
value: elastic
- name: ELASTICSEARCH_PASSWORD
value: my_password
After install it, I can't find logs sent by filebeat:
curl -k -u elastic:$PASSWORD https://localhost:9200/_cat/indices\?v
The deployed daemonset always restart.
Back-off restarting failed container filebeat in pod filebeat-ws569_kube-system(853828f7-6b76-44ba-8896-af7bf15d6a38)
What else need to change?
Is it necessary to add ssl.certificate_authorities
to output.elasticsearch
?
output.elasticsearch:
hosts: ['${ELASTICSEARCH_HOST:elasticsearch}:${ELASTICSEARCH_PORT:9200}']
username: ${ELASTICSEARCH_USERNAME}
password: ${ELASTICSEARCH_PASSWORD}