遇到的问题:

[root@m01 modules.d]# tail -f /var/log/filebeat/filebeat
2020-07-19T11:29:42.226+0800	ERROR	pipeline/output.go:100	Failed to connect to backoff(elasticsearch(http://10.0.0.51:9200)): Connection marked as failed because the onConnect callback failed: Error loading pipeline for fileset nginx/access: This module requires the following Elasticsearch plugins: ingest-user-agent, ingest-geoip. You can install them by running the following commands on all the Elasticsearch nodes:
    sudo bin/elasticsearch-plugin install ingest-user-agent
    sudo bin/elasticsearch-plugin install ingest-geoip

解决方法:

[root@m01 modules.d]# find / -name "elasticsearch-plugin"
/usr/share/elasticsearch/bin/elasticsearch-plugin
[root@m01 modules.d]# /usr/share/elasticsearch/bin/elasticsearch-plugin  install ingest-user-agent
[root@m01 modules.d]# /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-geoip
Logo

一站式 AI 云服务平台

更多推荐