티스토리 뷰
반응형
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
반응형
'Study' 카테고리의 다른 글
Webalizer(웹얼라이저) 관련 (0) | 2024.01.07 |
---|---|
CentOS(센트오에스) 7 crontab(크론탭) (0) | 2024.01.07 |
Vimeo(비메오) 관련 (0) | 2023.07.09 |
Chrome Remote Desktop Host(크롬 원격 데스크톱 호스트) 삭제 에러 (0) | 2023.06.18 |
iptime VPN 서버설정 (0) | 2023.05.03 |
댓글