【问题标题】:Logstash Google Pubsub Input Plugin fails to load file and pull messagesLogstash Google Pubsub Input Plugin 无法加载文件和拉取消息
【发布时间】:2021-11-11 10:45:08
【问题描述】:

在我的生产环境中运行的 docker 容器上尝试使用使用 google_pubsub 的配置运行 Logstash 管道时出现此错误:

2021-09-16 19:13:25 FATAL runner:135 - The given configuration is invalid. Reason: Unable to configure plugins: (PluginLoadingError) Couldn't find any input plugin named 'google_pubsub'. Are you sure this is correct? Trying to load the google_pubsub input plugin resulted in this error: Problems loading the requested plugin named google_pubsub of type input. Error: RuntimeError

    you might need to reinstall the gem which depends on the missing jar or in case there is Jars.lock then resolve the jars with `lock_jars` command

no such file to load -- com/google/cloud/google-cloud-pubsub/1.37.1/google-cloud-pubsub-1.37.1 (LoadError)
2021-09-16 19:13:25 ERROR Logstash:96 - java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

这似乎是在重新安装插件时随机发生的。我认为这是代理问题,但我在白名单中启用了 google 域。可能是错误的/缺少的东西。不过,这并不能解释随机故障。

此外,当我在我的机器上运行管道时,我会收到 GCP 事件,但是当我在 VM 上执行此操作时 - 不会提取任何 Pubsub 消息。会不会是防火墙规则阻止了它们?

【问题讨论】:

    标签: google-cloud-platform logstash google-cloud-pubsub


    【解决方案1】:

    错误消息表明加载“google_pubsub”输入插件时出现问题。此错误通常发生在输入 Pub/Sub 插件未正确安装时。请确保您为 Pub/Sub 正确安装 Logstash Plugin

    例如,在 VM 中为 Pub/Sub 安装 Logstash 插件:

    sudo -u root sudo -u logstash bin/logstash-plugin install logstash-input-google_pubsub
    

    有关详细演示,请参阅this 社区教程。

    【讨论】:

    • 谢谢。我正在使用离线插件包安装,有时它会出现此错误,经过几次尝试后它已成功安装。仍然不知道为什么
    • 这个问题似乎更多地出现在插件方面。我建议在 Elastic Cloud 社区 forum 上打开此问题
    猜你喜欢
    • 2018-08-10
    • 2018-12-10
    • 2021-06-04
    • 1970-01-01
    • 2021-06-19
    • 2018-05-20
    • 2016-10-12
    • 2020-04-03
    • 1970-01-01
    相关资源
    最近更新 更多