0
Docker Swarm 모드에서 ELK를 설치하려고합니다.Docker Swarm에서 IP에 대한 참조를 대체하는 방법
그러면 logstash에 로그를 보내도록 filebeat에 알려야합니다. ...
#=========================== Filebeat prospectors =============================
## Each - is a prospector. Most options can be set at the prospector level, so
## you can use different prospectors for various configurations.
## Below are the prospector specific configurations.
filebeat.prospectors:
- input_type: log
enabled: true
paths:
{% for log in in_filebeat_dict.filebeat.logs | default([]) %}
- {{ log }}
{% endfor %}
#================================ Outputs =====================================
# Configure what output to use when sending the data collected by the beat.
output.logstash:
hosts: ["{{ in_filebeat_dict.filebeat.output.logstash }}:{{ in_filebeat_dict.filebeat.output.port}}"]
하지만 in_filebeat_dict.filebeat.output.logstash
는 IP이며, 스웜 모드에서 떼 컨테이너를 설치할 위치를 결정하지 않으며, 그래서 나는 조금 여기에 갇혔어요 : 여기
어떤 아이디어 ???
예, 동일한 네트워크에 있습니다. 스택에 서비스를 만들 때 서비스 이름 앞에 stak 이름이 붙어 있으므로 서비스 이름은 : logstash_logstash입니다. logstash와 logstas_stash 솔기가 모두 작동합니다. 왜 그런지 알아? –
당신은 자루에 의해 추가 된 접두어를 의미합니까? 나는 그것이 단지 정의라고 생각한다. 그리고 이것을 사용하여 쉽게 녹색 파란 배치를 만들 수 있습니다. 새 스택이 이전 스택과 간섭하지 않도록 모든 스택을 새 스택 이름으로 다시 배포하면됩니다. 모든 것이 제대로 실행되면 리버스 프록시 설정과 벌금을 업데이트하십시오. 가동 중단없이 업데이트 됨 – Markus