简体   繁体   English

fluent-plugin-elasticsearch:logstash_format true不起作用

[英]fluent-plugin-elasticsearch: logstash_format true not working

I am trying to implement this: http://www.tipstuff.org/2014/01/Postfix-log-centralize-and-analysis-in-realtime-with-fluentd-elasticsearch-and-kibana-part-4.html 我正在尝试实施此方法: http : //www.tipstuff.org/2014/01/Postfix-log-centralize-and-analysis-in-realtime-with-fluentd-elasticsearch-and-kibana-part-4.html

I have everything working with this configuration: 我可以使用此配置进行所有操作:

<match mail.info>
  type elasticsearch
  log_level debug
  index_name postfix_mail
  type_name postfix_mail
</match>

But when I add logstash_format true, it does not work. 但是当我添加logstash_format true时,它不起作用。 I desperately need timestamp in my ES index to get Kibana to work as desired. 我非常需要ES索引中的时间戳,以使Kibana能够按需工作。

<match mail.info>
  type elasticsearch
  log_level debug
  index_name postfix_mail
  type_name postfix_mail
  logstash_format true
</match>

I tried to add verbose logging in td-agent init script (-vv option), but I don't get anything of value there. 我试图在td-agent初始化脚本(-vv选项)中添加详细的日志记录,但是在那里我没有得到任何有价值的东西。

Any inputs to resolve this will be highly appreciated. 任何解决此问题的意见将不胜感激。

in your match block, I'm not seeing any details for the elasticsearch server. 在您的match块中,我没有看到Elasticsearch服务器的任何详细信息。 maybe add that? 也许加上?

docs are here: https://github.com/uken/fluent-plugin-elasticsearch 文档在这里: https : //github.com/uken/fluent-plugin-elasticsearch

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM