Skip to content

Instantly share code, notes, and snippets.

@ahmed-hachena
Last active February 12, 2019 11:04
Show Gist options
  • Select an option

  • Save ahmed-hachena/dbf790eb28935655b8a1dcc099dc3ad3 to your computer and use it in GitHub Desktop.

Select an option

Save ahmed-hachena/dbf790eb28935655b8a1dcc099dc3ad3 to your computer and use it in GitHub Desktop.
ES 1.7 & logstash 2
input {
elasticsearch {
hosts => "localhost:9200"
index => "b2b"
docinfo => true
}
}
output {
elasticsearch {
protocol => "http"
host => ["localhost:9200"]
index => "b2b_new"
document_type => "data"
flush_size => 1000
}
# We print dots to see it in action
stdout {
codec => "dots"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment