Logstash could not be started because there is already another instance using the configured data directory 에러 해결

인지용·2024년 3월 3일
0

Mac 기준

로컬에서 logstash 설정 파일 수정 후 logstash를 재시작 하는데 아래 에러가 발생했다.

Logstash could not be started because there is already another instance using the configured data directory

해결방법

  1. elasticsearch, kibana 종료
  1. 명령어 입력

lsof -i:9600 | grep 'LISTEN' | awk '{print $2}'
kill -9 위에서나온pid

  1. elasticsearch, kibana 재시작

  2. 명령어 입력

bash logstash -f logstashconf파일절대경로 --config.reload.automatic

config.reload.automatic 옵션은 앞으로 config 파일 수정시 자동 반영되게 하는 역할인가보다.

profile
한-줄

0개의 댓글

관련 채용 정보