$ fluent-gem install fluent-plugin-elasticsearch一定不要用
正确的用法是
fluent- gem list elasticsearch 先查看有哪些版本

然后选择其中一个指定版本号安装 例如

配置文件如下
<source> @type http port 9880 </source> <match fluentd.log> @type copy <store> @type elasticsearch hosts 127.0.0.1:9200 logstash_format true logstash_prefix chris.risley logstash_dateformat %Y%m%d include_tag_key true flush_interval 1s </store> <store> @type stdout </store></match>
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删