Gibbs Kim's playground

[ElasticStack-14] Logstash path.data setting 본문

Tech 기록지/Elastic Stack

[ElasticStack-14] Logstash path.data setting

Lio Grande 2020. 6. 11. 10:04

로그스태시로 데이터를 인덱싱할때 주로 다음과 같은 명령어를 사용한다.

## If file name of .conf is test.conf, typing like below.
LOGSTASH_HOME/bin> ./logstash -f test.conf

이때 다음과 같은 에러가 발생할 수 있다.

> Logstash could not be started because there is already another instance using the configured data
directly. If you wish to run multiple instances, you must change the "path.data" setting.

의미는 대략, 데이터를 인덱싱하기에 이미 다른 instance가 사용중이라는 건데, '/config/logstash.yml'의 설정을 건드려주면 해결이 된다.

### logstash.yml에서 path.data: 항목을 찾으면 됩니다
#path.data:			### 초기 설정값
path.data: '인덱싱할 raw data가 있는 위치'