-
-
Save NavarroMauro/8c896d29c1ec6c09e3d07694da04f097 to your computer and use it in GitHub Desktop.
Reindexing Elasticsearch with Logstash 2.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Reindexing after chard and replicates changed | |
| input { | |
| elasticsearch { | |
| hosts => [ "HOSTNAME_HERE" ] | |
| port => "9200" | |
| index => "INDEXNAME_HERE" | |
| size => 1000 | |
| scroll => "5m" | |
| docinfo => true | |
| scan => true | |
| } | |
| } | |
| output { | |
| elasticsearch { | |
| hosts => [ "HOSTNAME_HERE" ] | |
| index => "%{[@metadata][_index]}" | |
| document_type => "%{[@metadata][_type]}" | |
| document_id => "%{[@metadata][_id]}" | |
| } | |
| stdout { | |
| codec => "dots" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment