본문 바로가기

반응형

전체 글

(371)
OpenSearch Fluentd - 패키지 설치 OpenSearch Fluentd - 패키지 설치 td-agent는 환경 변수 PATH에 존재하지 않는 경로에 Ruby Gem을 설치하여 전체 시스템에 영향을 주지 않고 사용 가능합니다. 설치 # td-agent 4 $ curl -L https://toolbelt.treasuredata.com/sh/install-amazon2-td-agent4.sh | sh 실행 $ systemctl start td-agent.service $ systemctl status td-agent.service 테스트 $ curl -X POST -d 'json={"json":"message"}' http://localhost:8888/debug.test $ tail -n 1 /var/log/td-agent/td-agent.lo..
OpenSearch Fluent Bit - golang 플러그인 OpenSearch Fluent Bit - golang 플러그인 golang 설치 $ wget https://dl.google.com/go/go1.13.linux-amd64.tar.gz $ sha256sum go1.13.linux-amd64.tar.gz $ tar -C /usr/local -xzf go1.13.linux-amd64.tar.gz 경로 변수 조정 ~ / .bash_profile echo "" >> ~ / .bash_profile echo "경로 변수 조정" >> ~ / .bash_profile echo "export PATH=$PATH:/usr/local/go/bin" >> ~ / .bash_profile source ~/.bash_profile 컴파일 cd build/ cmake3 -DFL..
OpenSearch Fluent Bit - 소스 빌드 OpenSearch Fluent Bit - 소스 빌드 ※ Go plugin을 포함하여 코드 기반 확장을 하는 경우 Git에서 개발버전을 사용합니다. 다만, 개발버전이기 때문에 컴파일 또는 런타임 문제가 발생할 수 있습니다. 요구사항 yum install gcc-c++ yum install cmake3 소스코드 다운로드 git clone https://github.com/fluent/fluent-bit 프로젝트 구성 cd build cmake3 ../ make make install config 설정 cd /home/ec2-user/fluent-bit/build/ echo "[SERVICE]" >> flb-config-test.conf echo "Flush 1" >> flb-config-test.conf ..

728x90
반응형