Logstash container for ElasticSearch forwarding. Support provided for failover of Elasticsearch.
500K+
Image to support Scale log capture with Logstash failover between Elasticsearch nodes.
This image is primarily intended to mitigate issues when Elasticsearch cluster nodes fail and are instantiated elsewhere. Barring all nodes moving to other addresses, the watchdog process will discover the new locations from Elasticsearch APIs and update the logstash pipeline to all available nodes.
If your Elasticsearch cluster is configured behind a load balancer(s), as it should be, you can disable the watchdog functionality. This will still provide the template injection capability, but no introspection of Elasticsearch cluster state APIs will be performed.
This image provides a number of environment variables that can be used to tweak the behavior of logstash.
true) or not (false). If this
value is set to false, watchdog functionality will be activated, otherwise it will be skipped.true if output is desired, any other value will not output messages.If there is a need to override the default configuration or specify additional filters, the following example contains the minimum required configuration that should be used as a starting point for your config.
input {
http {
port => 80
type => "app-healthcheck"
}
}
filter {
if [type] == "app-healthcheck" {
drop { }
}
}
output {
elasticsearch {
hosts => _ES_HOSTS_
}
}
The http input handler and filter is needed to support Marathon health checks and drop all messages from that input.
If health checks are not needed all that is required is the output directive. The _ES_HOSTS_ value is required to
support the watchdog injection of nodes into the Logstash pipeline.
Content type
Image
Digest
Size
148.3 MB
Last updated
over 5 years ago
docker pull geoint/scale-logstash