Mac 기준
로컬에서 logstash 설정 파일 수정 후 logstash를 재시작 하는데 아래 에러가 발생했다.
Logstash could not be started because there is already another instance using the configured data directory
lsof -i:9600 | grep 'LISTEN' | awk '{print $2}'
kill -9 위에서나온pid
elasticsearch, kibana 재시작
명령어 입력
bash logstash -f logstashconf파일절대경로 --config.reload.automatic
config.reload.automatic 옵션은 앞으로 config 파일 수정시 자동 반영되게 하는 역할인가보다.