저는 비슷한 문제에 직면했습니다. 당신이 다음 stdin
의 다른 구성 입력이없는 것처럼
-ti
와 -ti
# docker run --rm logstash:2.3.4 logstash --debug --verbose -e 'input { stdin { } } output { stdout { } }'
{:timestamp=>"2016-08-03T03:24:48.618000+0000", :message=>"starting agent", :level=>:info}
{:timestamp=>"2016-08-03T03:24:48.629000+0000", :message=>"starting pipeline", :id=>"main", :level=>:info}
{:timestamp=>"2016-08-03T03:24:48.816000+0000", :message=>"Starting pipeline", :id=>"main", :pipeline_workers=>1, :batch_size=>125, :batch_delay=>5, :max_inflight=>125, :level=>:info}
{:timestamp=>"2016-08-03T03:24:48.827000+0000", :message=>"Pipeline main started"}
{:timestamp=>"2016-08-03T03:24:48.848000+0000", :message=>"Input plugins stopped! Will shutdown filter/output workers.", :level=>:info}
{:timestamp=>"2016-08-03T03:24:48.953000+0000", :message=>"Pipeline main has been shutdown"}
{:timestamp=>"2016-08-03T03:24:51.834000+0000", :message=>"stopping pipeline", :id=>"main"}
{:timestamp=>"2016-08-03T03:24:51.843000+0000", :message=>"Closing inputs", :level=>:info}
{:timestamp=>"2016-08-03T03:24:51.844000+0000", :message=>"Closed inputs", :level=>:info}
없이
# docker run -ti --rm logstash:2.3.4 logstash --debug --verbose -e 'input { stdin { } } output { stdout { } }'
starting agent {:level=>:info}
starting pipeline {:id=>"main", :level=>:info}
Settings: Default pipeline workers: 1
Starting pipeline {:id=>"main", :pipeline_workers=>1, :batch_size=>125, :batch_delay=>5, :max_inflight=>125, :level=>:info}
Pipeline main started
^CSIGINT received. Shutting down the agent. {:level=>:warn}
stopping pipeline {:id=>"main"}
Closing inputs {:level=>:info}
Closed inputs {:level=>:info}
^CSIGINT received. Terminating immediately.. {:level=>:fatal}
보인다. 당신이 작곡가를 사용하여 시작하는 경우
그래서 당신은 할 것이다 tty: true
# cat docker-compose.yml
version: '2'
services:
logstash:
image: logstash:2.3.4
command: logstash --verbose --debug
tty: true
결과를 설정해야
# docker logs -f sync_logstash_1
starting agent {:level=>:info}
starting pipeline {:id=>"main", :level=>:info}
Settings: Default pipeline workers: 1
Starting pipeline {:id=>"main", :pipeline_workers=>1, :batch_size=>125, :batch_delay=>5, :max_inflight=>125, :level=>:info}
Pipeline main started