
khezen/logstash5.1.2, 5.1, 5, latest (5.0/Dockerfile)Logstash is an open source, server-side data processing pipeline that ingests data from a multitude of sources simultaneously, transforms it, and then sends it to your favorite “stash.” (Elasticsearch for example.)
[]([***]
docker run -d -p 5000:5000 - p 5001:5001 khezen/logstash:latest
run the following command on your host:
sysctl -w vm.max_map_count=262144
You can set it permanently by modifying vm.max_map_count setting in your /etc/sysctl.conf.
version: '3' services: elasticsearch: image: khezen/elasticsearch:2 environment: ELASTIC_PWD: changeme KIBANA_PWD: brucewayne LOGSTASH_PWD: heizenberg volumes: - /data/elasticsearch:/usr/share/elasticsearch/data - /etc/elasticsearch:/usr/share/elasticsearch/config ports: - "9200:9200" - "9300:9300" network_mode: bridge restart: unless-stopped kibana: links: - elasticsearch:elasticsearch-0 image: khezen/kibana:4 environment: KIBANA_PWD: brucewayne ELASTICSEARCH_HOST: elasticsearch-0 ELASTICSEARCH_PORT: 9200 volumes: - /etc/kibana:/opt/kibana/config ports: - "5601:5601" network_mode: bridge restart: unless-stopped logstash: links: - elasticsearch:elasticsearch-0 image: khezen/logstash:2 environment: LOGSTASH_PWD: heizenberg ELASTICSEARCH_HOST: elasticsearch-0 ELASTICSEARCH_PORT: 9200 volumes: - /etc/logstash:/etc/logstash/conf.d - /etc/elasticsearch/searchguard/ssl:/etc/elasticsearch/searchguard/ssl ports: - "5000:5000" - "5001:5001" network_mode: bridge restart: unless-stopped
HEAP_SIZE | 1g
Defines the maximum memory allocated to logstash.
LOGSTASH_PWD | changeme
password for elasticsearch built-in user logstash.
ELASTICSEARCH_HOST | elasticsearch
Elasticsearch hostname.
ELASTICSEARCH_PORT | 9200
Elasticsearch port.
TS_PWD | changeme
Truststore password
input { tcp { port => 5000 codec => "json" } udp { port => 5001 codec => "json" } } filter { date { match => [ "timestamp", "dd/MMM/YYYY:HH:mm:ss Z" ] } geoip { source => "clientip" } useragent { source => "agent" target => "useragent" } } output { elasticsearch { hosts => "${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}" user => "logstash" password => "${LOGSTASH_USER}" ssl => true ssl_certificate_verification => true truststore => "/etc/elasticsearch/searchguard/ssl/truststore.jks" truststore_password => "${TS_PWD}" } }
Configuration file is located in /etc/logstash/logstash.conf if you follow the same volume mapping as in docker-compose examples above.
You can find default config there.
NOTE: It is possible to use environment variables in logstash.conf.
You can find help with logstash configuration there.
If you have any problems with or questions about this image, please ask for help through a GitHub issue.



manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务