我想从我的logstash输出到amazon elasticsearch,我的logstash是通过docker compose启动的。但是永远不会安装amazon_es插件。我也尝试过使用elasticsearch输出但是我必须为此打开匿名访问。
搬运工-compose.yml
services:
logstash:
build:
context: logstash/
volumes:
- ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
- ./logstash/pipeline:/usr/share/logstash/pipeline:ro
ports:
- "5000:5000"
environment:
LS_JAVA_OPTS: "-Xmx2g -Xms2g"
networks:
- elk
networks:
elk:
driver: bridge
管道(输出)
output {
amazon_es {
hosts => "https://es-url-es-url.com"
document_id => "%{[@metadata][fingerprint]}"
index => "docker-movies"
region => "us-east-1"
}
}
logstash / Dockerfile
FROM docker.elastic.co/logstash/logstash-oss:6.2.4
# Add your logstash plugins setup here
# Example: RUN logstash-plugin install logstash-filter-json
RUN logstash-plugin install logstash-output-amazon_es