Loading deploy/.env +1 −0 Original line number Diff line number Diff line LOG_LEVEL=warn ES_HOSTS=es-1:9200,es-2:9200,es-3:9200 ES_USER=user ES_PASS=pass deploy/conf/fluent.conf +8 −0 Original line number Diff line number Diff line <system> log_level "#{ENV['LOG_LEVEL']}" </system> <source> @type forward </source> Loading Loading @@ -28,4 +32,8 @@ logstash_prefix fluentd-${tag_parts[0]} logstash_dateformat %Y%m flush_interval 30s request_timeout 15s reconnect_on_error true reload_on_failure true reload_connections false </match> deploy/docker-compose.yml +3 −2 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ services: fluentd: image: ${IMAGE_NAME}:${IMAGE_TAG:-latest} environment: - LOG_LEVEL - ES_HOSTS - ES_USER - ES_PASS Loading @@ -24,10 +25,10 @@ services: resources: limits: cpus: '1' memory: 128M memory: 256M reservations: cpus: '0.1' memory: 64M memory: 128M networks: log-net: Loading Loading
deploy/.env +1 −0 Original line number Diff line number Diff line LOG_LEVEL=warn ES_HOSTS=es-1:9200,es-2:9200,es-3:9200 ES_USER=user ES_PASS=pass
deploy/conf/fluent.conf +8 −0 Original line number Diff line number Diff line <system> log_level "#{ENV['LOG_LEVEL']}" </system> <source> @type forward </source> Loading Loading @@ -28,4 +32,8 @@ logstash_prefix fluentd-${tag_parts[0]} logstash_dateformat %Y%m flush_interval 30s request_timeout 15s reconnect_on_error true reload_on_failure true reload_connections false </match>
deploy/docker-compose.yml +3 −2 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ services: fluentd: image: ${IMAGE_NAME}:${IMAGE_TAG:-latest} environment: - LOG_LEVEL - ES_HOSTS - ES_USER - ES_PASS Loading @@ -24,10 +25,10 @@ services: resources: limits: cpus: '1' memory: 128M memory: 256M reservations: cpus: '0.1' memory: 64M memory: 128M networks: log-net: Loading