logstash迁移es数据
input {
elasticsearch {
hosts => ["instance:9200"]
user => "elastic"
index => "*,-.monitoring*,-.security*,-.kibana*"
password => "123456"
docinfo => true
ssl => true
#证书路径
ca_file => "/app/taishi/elasticsearch/ca/ca.crt"
}
}
filter {
}
output {
elasticsearch {
hosts => ["https://1.1.1.1:9200"]
user => "elastic"
password => "123456"
index => "%{[@metadata][_index]}"
ssl => true
#证书路径
cacert => "/app/taishi/elasticsearch/ca2/ca.crt"
document_type => "%{[@metadata][_type]}"
document_id => "%{[@metadata][_id]}"
}
}
本文来自博客园,作者:舒然,转载请注明原文链接:https://www.cnblogs.com/Jeffrey1172417122/p/15905526.html

浙公网安备 33010602011771号