2019. 2. 11. 01:09 elasticsearch
window logstash.bat -e 실행시 single quote error
Learning Elastic Stack 6.0 보는데..... 정말 저자를 패고 싶다.
테스트를 안한 건지.... 버전업이 되면서 바뀐건지....
logstash를 윈도우에 설치하고 테스트 해 보는 예제인데....
single quote(작은 따음표)를 주고 실행하면 아래와 같은 오류가 발생한다.
C:\logstash-6.6.0\bin>logstash.bat -e 'input { stdin { } } output { stdout { } }'
ERROR: Unknown command '{'
See: 'bin/logstash --help'
[ERROR] 2019-02-11 00:58:05.745 [main] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit
double quote(큰 따음표)로 변경해서 실행하면 잘 되는거 같은데....
C:\logstash-6.6.0\bin>logstash.bat -e "input { stdin { } } output { stdout { } }"
Sending Logstash logs to C:/logstash-6.6.0/logs which is now configured via log4j2.properties
[2019-02-11T01:01:54,037][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2019-02-11T01:01:54,051][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.6.0"}
[2019-02-11T01:01:59,024][INFO ][logstash.pipeline ] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>8, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50}
[2019-02-11T01:01:59,138][INFO ][logstash.pipeline ] Pipeline started successfully {:pipeline_id=>"main", :thread=>"#<Thread:0x402ecfea run>"}
The stdin plugin is now waiting for input:
[2019-02-11T01:01:59,172][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>[]}
[2019-02-11T01:01:59,445][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
'elasticsearch' 카테고리의 다른 글
elasticsearch 에 logstash를 이용해서 csv 파일 읽어 들이기 (0) | 2019.02.09 |
---|