作者:手机用户2502892647 | 来源:互联网 | 2023-01-06 08:50
我试图复制我的Logstash配置并同时安装插件。香港专业教育学院迄今尝试了多种方法无济于事,Logstash每次都存在错误
这失败了:
logstash:
image: logstash:latest
command: logstash -f /etc/logstash/conf.d/logstash.conf
command: bash -c bin/logstash-plugin install logstash-filter-translate
这失败了:
command: logstash -f /etc/logstash/conf.d/logstash.conf bash -c bin/logstash-plugin install logstash-filter-translate
这失败了:
command: logstash -f /etc/logstash/conf.d/logstash.conf && bash -c bin/logstash-plugin install logstash-filter-translate
这也失败了
command: bash -c logstash -f /etc/logstash/conf.d/logstash.conf && bin/logstash-plugin install logstash-filter-translate
我在这里没有运气,我敢打赌答案很简单……有人能指出我正确的方向吗?
谢谢
1> Apolozeus..:
我在下面的配置中使用本地本地映像,然后工作正常。希望能帮助到你。
version: '3'
services:
logstash:
image: docker.elastic.co/logstash/logstash:5.6.3
command: bash -c "logstash -f /etc/logstash/conf.d/logstash.conf && bin/logstash-plugin install logstash-filter-translate"
样品输出
logstash_1 | [2017-12-06T15:27:29,120][WARN ][logstash.agent ] stopping pipeline {:id=>".monitoring-logstash"}
logstash_1 | Validating logstash-filter-translate
logstash_1 | Installing logstash-filter-translate