Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
<img src="//i.stack.imgur.com/RUiNP.png" height="16" width="18" alt="" class="sponsor tag img">elasticsearch 设置麋鹿堆_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch_Logstash_Kibana_Filebeat - Fatal编程技术网 elasticsearch 设置麋鹿堆,elasticsearch,logstash,kibana,filebeat,elasticsearch,Logstash,Kibana,Filebeat" /> elasticsearch 设置麋鹿堆,elasticsearch,logstash,kibana,filebeat,elasticsearch,Logstash,Kibana,Filebeat" />

elasticsearch 设置麋鹿堆

elasticsearch 设置麋鹿堆,elasticsearch,logstash,kibana,filebeat,elasticsearch,Logstash,Kibana,Filebeat,我对ELK是一个全新的人,正在尝试为我们的服务器安装带有节拍的堆栈 Elasticsearch、Kibana和Logstash都已安装(在服务器A上)。我是按照这个指南来的 还安装了Filebeat模板 我还在另一台服务器(服务器B)上安装了filebeat,并尝试测试连接 $ /usr/share/filebeat/bin/filebeat test output -c /etc/filebeat/filebeat.yml -path.home /usr/share/filebeat -

我对ELK是一个全新的人,正在尝试为我们的服务器安装带有节拍的堆栈

Elasticsearch、Kibana和Logstash都已安装(在服务器A上)。我是按照这个指南来的

还安装了Filebeat模板

我还在另一台服务器(服务器B)上安装了filebeat,并尝试测试连接

$ /usr/share/filebeat/bin/filebeat test output -c 
/etc/filebeat/filebeat.yml -path.home /usr/share/filebeat - 
path.config /etc/filebeat -path.data /var/lib/filebeat -path.logs 
/var/log/filebeat
logstash: my-own-domain:5044...
  connection...
    parse host... OK
    dns lookup... OK
    addresses: 163.172.167.147
    dial up... OK
  TLS...
    security: server's certificate chain verification is enabled
    handshake... OK
    TLS version: TLSv1.2
    dial up... OK
  talk to server... OK
事情似乎还不错,但服务器B上filebeat的数据似乎并没有将数据发送到logstash

访问Kibana会不断将我重定向回创建索引模式,并显示消息

Couldn't find any Elasticsearch data

您可以查看您的
filebeat.yml
文件并查看日志配置是否已激活,如有任何指示,我们将不胜感激。

您是否可以检查您的
filebeat.yml
文件:

filebeat.prospectors:
- type: log
  enabled: true
  paths:
    - /var/log/*.log

非常感谢@NicolasY,这很有效。为什么我没有注意到呢?哈哈,我在遵循指南,但它没有提到这一点:vI很乐意帮助你;)!你能不能把@NicolasY的答案标记为已接受,因为这解决了你的问题?