749ee5405c
By default the elasticsearch output plugin for logstash has no timeout. I think this is the cause of logstash daemons hanging when we have elasticsearch node outages. Goal here is to have the timeout force the request to be retried again (ideally against a different server entirely but even if it is simply retried to the same server we should operate properly again once the server that went down is back up). Change-Id: I0511f32f8ee3f0c40987cab3e2528a85595785b2
10 lines
184 B
Plaintext
10 lines
184 B
Plaintext
output {
|
|
elasticsearch {
|
|
hosts => <%= @elasticsearch_nodes.map { |node| node + ":9200" }.inspect %>
|
|
manage_template => false
|
|
flush_size => 1024
|
|
timeout => 300
|
|
}
|
|
|
|
}
|