ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Logstash 6.x Multi instance 실행 설정 법
    ELK/Logstash 2018. 11. 20. 15:05


    Logstash 6.x Multi instance



    Logstash 2개 이상의 instance를 실행하려 하면 다음과 같은 익셉션이 나온다.



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


    이에 대한 해결법은 


    1. 기존 폴더 (logstash-hashtag) 복사

    >> cp -R logstash-hashtag logstash-posting



    2. 각각 폴더 별로 /conf/logstash.yml 내의 path 데이터에 폴더별 해당 경로 지정

    >> path.data : /usr/local/ELK/logstash/logstash-hashtag

    >> path.data :/usr/local/ELK/logstash/logstash-posting



    3. 각각 폴더 별로 /config/startup.options SERVICE_NAME, SERVICE_DESCRIPTION 변경

    >> SERVICE_NAME="logstash-hashtag", SERVICE_DESCRIPTION="logstash-hashtag"

    >> SERVICE_NAME="logstash-posting", SERVICE_DESCRIPTION="logstash-posting"



    4. logstash 개별 실행 (conf 폴더 내에서의 경우 )

    >> ../bin/logstash -f ./logstash-backpack-hashtag.conf

    >> ../bin/logstash -f ./logstash-backpack-posting.conf



    5. 로그 및 실행 확인






Designed by Tistory.