티스토리 뷰

Study

fluentd(플루언트디) 관련

메디츠 2023. 12. 31. 19:33
반응형

2017년 7월 기준.

 

curl -L https://toolbelt.treasuredata.com/sh/install-redhat-td-agent2.sh | sh

// 설치 스크립트

 

curl: (35) SSL connect error

// curl또는 NSS관련 업데이트. yum update ca-certificates.noarch

 

/etc/init.d/td-agent start

// td-agent start

 

/etc/init.d/td-agent status

// td-agent status

 

/etc/td-agent/td-agent.conf

// 설정

# http://this.host:9880/myapp.access?json={"event":"data"}

<source>

@type http

port 9880

</source>

 

<match myapp.access>

@type file

path /var/log/fluent/access

</match>

// 매치될 경우 파일로 저장

 

/var/log/td-agent/td-agent.log

// 로그 위치

 

curl -X POST -d 'json={"json":"message"}' http://localhost:8888/debug.test

// test log

반응형
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/06   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
글 보관함