【问题标题】:Filebeat command not found找不到 Filebeat 命令
【发布时间】:2017-04-12 19:05:14
【问题描述】:

我在 localhost 的 docker 容器中运行 ELK,我正在尝试 start filebeat(不是通过 docker 容器),但我收到以下错误。

/etc/init.d/filebeat:找不到命令

有没有人遇到过类似的问题或知道如何解决这个问题?

他们也提到过:

如果您使用 init.d 脚本在 deb 或 rpm 上启动 Filebeat,则无法指定命令行标志(请参阅命令行选项)。要指定标志,请在前台启动 Filebeat。

但不明白。我检查了很多,但没有任何帮助。我在 ubuntu 16.10 中运行它

【问题讨论】:

  • ubuntu 还是 centos?你的帖子说 ubuntu,但你在下面的评论说 centos
  • 这些命令将为您完成这项工作。 curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.3.2-amd64.deb sudo dpkg -i filebeat-7.3.2-amd64.deb

标签: logstash elastic-stack filebeat


【解决方案1】:

听起来你想在主机上启动 filebeat 但你没有安装它

https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation.html

【讨论】:

  • 当然,我已经按照页面给出的说明安装了
  • 这是在什么平台上?
  • 这是在 centos 7 @7AC 上运行的
【解决方案2】:

由于您使用的是带有 systemd 的 Linux 发行版,您是否尝试过将 filebeat 启动为 systemd 服务?检查状态:

systemctl status -l filebeat

如果返回有关服务的信息,则 filebeat 设置为 systemd 服务,而不是 init.d spawn。启用它以使其在重新启动后持续存在:

sudo systemctl enable filebeat

然后开始:

sudo systemctl start filebeat

【讨论】:

    猜你喜欢
    • 2021-02-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多