docker run -dit --name logstash153_60 -v /home/docker/logstash/:/etc/logstash/pipeline logstash:5.6.13
logstash -f /etc/logstash/pipeline/es153_60.conf --path.data=/root/ &
input{
elasticsearch {
hosts => "15.99.72.153:9200"
index => "eaddcomponentindex_*"
schedule => "* */6 * * *"
docinfo => true
size => 1000 scroll => "5m" }}
output {
elasticsearch {
hosts => ["15.31.212.60:9200"]
index => "%{[@metadata][_index]}"
document_type => "%{[@metadata][_type]}"
document_id => "%{[@metadata][_id]}"}}
标签:index,9200,60,从库,logstash,es,metadata From: https://www.cnblogs.com/xiaohanlin/p/17184836.html