1) VirtualBox 설치
https://www.virtualbox.org/ 에서 다운로드
2) CentOS 6.6 설치
http://isoredirect.centos.org/centos/6/isos/x86_64/ 에서 다운 받아 설치
(참조 : http://blog.daum.net/bang2001/114)
3) 네트워크 설정
참조 : http://stormaa.tistory.com/77#recentTrackback
이후 ssh 로 접속
4) JDK 설치
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u25-b17/jdk-8u25-linux-x64.tar.gz
5) InfluxDB 설치
wget http://s3.amazonaws.com/influxdb/influxdb-latest-1.x86_64.rpm
rpm -ivh influxdb-latest-1.x86_64.rpm
DB생성 : http://{host}:8083
6) FluentD 설치
curl -L http://toolbelt.treasuredata.com/sh/install-redhat-td-agent2.sh | sh
.플러그인설치
- InfluxDB Plugin : /opt/td-agent/embedded/bin/fluent-gem install fluent-plugin-influxdb
- redis Plugin : /opt/td-agent/embedded/bin/fluent-gem install fluent-plugin-redis-store
- multiline Plugin : /opt/td-agent/embedded/bin/fluent-gem install fluent-plugin-tail-multiline-ex
. conf 설정
<source>
type tail
path /root/pa/tomcat/logs/test-json.log
pos_file /var/log/td-agent/tmp/test-json.log.pos
tag test.push
format json
</source>
<match test.*>
type influxdb
dbname test_agent
flush_interval 10s # for testing.
host local2.test.com # (localhost by default)
port 8086 # (8086 by default)
</match>
7) app -> logging 테스트 실행
8) Grafana UI 확인
'개발관련' 카테고리의 다른 글
Spring Roo에서 java8 사용하기 (0) | 2015.08.07 |
---|---|
수집기 비교후, FleuntD 선택 (1) | 2015.06.09 |
노트북에서 데이터 수집 테스트 하는 환경 구성하기 (0) | 2015.03.04 |
MongoDB 에러: child process failed, exited with error number 100 (0) | 2014.01.21 |
JIRA 6 순서대로 설치하기 (1) | 2014.01.15 |
Spring Roo 에서 mongoOperations에 대한 NoSuchMethodError 문제 (0) | 2013.09.10 |
댓글을 달아 주세요