
[한이음] Fluentd 를 사용해 web log 와 MongoDB 연동
·
MSA 모니터링 서비스/DB
web log 가 생성되는 인스턴스와 mongoDB 가 설치된 인스턴스와 연동하기 위해서는 Fluentd 가 필요하다. (서로 다른 인스턴스!)일단 양쪽 인스턴스에 Fluentd 를 설치해준다.curl -L https://toolbelt.treasuredata.com/sh/install-ubuntu-trusty-td-agent2.sh | sh터미널에 위의 명령어를 입력해주면 자동으로 설치되면서 가장 밑에 설치가 완료되었다고 뜬다. 설치를 완료하면 conf 파일을 설정해준다.sudo vim /etc/td-agent/td-agent.conf 송신측 td-agent.conf 설정# 송신측 td-agent.conf 설정 @type tail format none path /home/ubuntu/webapp/..