你的位置:首页 > 信息动态 > 新闻中心
信息动态
联系我们

logstash数据导入操作

2021-11-22 17:26:52

[appmarket@ecs-appmarket-test05 bin]$ cat ru.conf
input{
elasticsearch {
hosts => [“10.89.36.57:9200,10.89.38.123:9200,10.89.36.33:9200”]
index => “ry_market_1_ru”
#type => “_doc”
size => 1000
scroll => “5m”
docinfo => false
}
}
filter {
mutate {
remove_field => [ “@timestamp”,"@version",“back_color”]
}
}
output{
elasticsearch {
hosts => [“10.89.36.113:9200”,“10.89.37.155:9200”]
index => “ry_market_ru”
#document_type => “_doc”
manage_template => false
ssl =>true
cacert => “/opt/hihonor/apps/appsearch/recall/config/CloudSearchService.cer”
user => “admin”
password => “vb@cx94zw64t”
ilm_enabled => false
}
}
需要主要如下的情况:
1.logstash版本和es版一样:
2.删除logstash中的x-pack目录;