Ale*_*exW 2 logstash docker docker-compose
我试图复制我的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
Run Code Online (Sandbox Code Playgroud)
这失败了:
command: logstash -f /etc/logstash/conf.d/logstash.conf bash -c bin/logstash-plugin install logstash-filter-translate
Run Code Online (Sandbox Code Playgroud)
这失败了:
command: logstash -f /etc/logstash/conf.d/logstash.conf && bash -c bin/logstash-plugin install logstash-filter-translate
Run Code Online (Sandbox Code Playgroud)
这也失败了
command: bash -c logstash -f /etc/logstash/conf.d/logstash.conf && bin/logstash-plugin install logstash-filter-translate
Run Code Online (Sandbox Code Playgroud)
我在这里没有运气,我敢打赌答案很简单……有人能指出我正确的方向吗?
谢谢
我在下面的配置中使用本地本地映像,然后工作正常。希望能帮助到你。
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"
Run Code Online (Sandbox Code Playgroud)
样品输出
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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3467 次 |
| 最近记录: |