首页 新闻 会员 周边 捐助

logstash 怎么将数据导入ES

0
悬赏园豆:10 [待解决问题]

在配置文件

input {
        file {
                type => "json"
                path => "/home/hadoop/xinwang_XW351464_2110"
        }
}
output {
  elasticsearch {
    cluster => "es_master"
    #manage_template => false
        embedded => true
    index => "huhu"
  }
}

版本是logstash-1.3.2,es版本是1.1.1

错误提示

java -jar logstash-1.3.2-flatjar.jar   agent -f ogstash-syslog.conf
Using milestone 2 input plugin 'file'. This plugin should be stable, but if you see strange behavior, please let us know! For more information on plugin milestones, see http://logstash.net/docs/1.3.2/plugin-milestones {:level=>:warn}
log4j, [2014-10-31T11:55:01.977]  WARN: org.elasticsearch.discovery: [Jocasta] waited for 30s and no initial state was set by the discovery
Unable to check template.  Automatic template management disabled. {:error=>"waited for [30s]", :level=>:error}

zhanggl的主页 zhanggl | 初学一级 | 园豆:182
提问于:2014-10-31 12:27
< >
分享
所有回答(2)
0
  • Redhat 5.7 64bit / CentOS 5.x
  • JDK 1.6.0_45
  • logstash 1.3.2 (内带kibana)
  • elasticsearch 0.90.10
  • redis 2.8.4

对应下版本

CaiYongji | 园豆:1267 (小虾三级) | 2014-10-31 18:19
0

弄个版本管理的 自动对应下载

Chaoa | 园豆:643 (小虾三级) | 2014-10-31 23:34
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册