这几天一直卡在比较简单的task上
我需要安装这个插件,https://github.com/lukewaite/logstash-input-cloudwatch-logs,到我的 Logstash docker 容器上,因为我使用 Cloudwatch 日志作为输入。
Dockerfile如下:
FROM docker.elastic.co/logstash/logstash-oss:8.7.0
# Install the Cloudwatch Logs input plugin
RUN mkdir ./logstash-input-cloudwatch-logs
COPY logstash-input-cloudwatch_logs-1.0.3.gem ./logstash-input-cloudwatch-logs/logstash-input-cloudwatch-logs.gem
COPY Gemfile Gemfile
RUN DEBUG=1 bin/logstash-plugin install --no-verify
# Install the OpenSearch output plugin
RUN /bin/sh -c bin/logstash-plugin install logstash-output-elasticsearch
# Copy the Logstash configuration file
COPY logstash.conf /usr/share/logstash/config/logstash.conf
# Run Logstash
CMD ["/usr/share/logstash/bin/logstash", "-f", "/usr/share/logstash/config/logstash.conf"]
我的Gemfile(截断):
# This is a Logstash generated Gemfile.
# If you modify this file manually all comments and formatting will be lost.
source "https://rubygems.org"
gem "logstash-core", :path => "./logstash-core"
gem "logstash-core-plugin-api", :path => "./logstash-core-plugin-api"
gem "atomic", "~> 1"
gem "builder", "~> 3"
.
.
.
gem "logstash-input-cloudwatch-logs", :path => "./logstash-input-cloudwatch-logs"
注意最后一行。
一切似乎都运行良好,但它卡在了 logstash-plugin 安装部分。
有什么想法吗?我是否完全以错误的方式安装它?尝试了一切,非常感谢一些反馈。
谢谢