A Logstash image configured to be managed from an Elastic Cluster (Centralized pipeline management)
226
A Logstash image configured to be managed from an Elastic Cluster (Centralized pipeline management).
Starts a Logstash container with the 5044 port exposed:
docker run -d \
-e ES_CLOUD_ID=xxxxxxxxxx \
-e ES_CLOUD_AUTH=user:password \
-e ES_PIPELINE_ID=xxxxxxxxxx \
-p 5044:5044 \
tractr/managed-logstash:latest
xpack.management.elasticsearch.cloud_id value.xpack.management.elasticsearch.cloud_auth value. Format: user:password.xpack.management.pipeline.id value.For more information about these variables, please refer to the Elastic documentation.
input {
tcp {
port => 5044
codec => "json"
}
}
filter {
date {
match => [ "timestamp", "UNIX_MS" ]
}
if [source][remoteAddress]
{
geoip {
source => "[source][remoteAddress]"
target => "geoip"
}
}
}
output {
elasticsearch {
cloud_id => "${ES_CLOUD_ID}"
cloud_auth => "${ES_CLOUD_AUTH}"
index => "api-%{+YYYY.MM.dd}"
}
}
For more information about this pipeline, please refer to the Elastic documentation.
Content type
Image
Digest
Size
479.5 MB
Last updated
over 4 years ago
docker pull tractr/managed-logstash