系统版本:centos 6.4 x86.64
网络环境:我这台机器处于内网,连不了外网,所以要通过代理上
服务端:elasticsearch和kibana、Fluentd Aggregator安装在一台机器上 IP为192.168.1.5
客户端:192.168.1.6 Mysql Server
192.168.1.7:tomcat Server
架构图:
注意:1、2、3步服务端和客户端都要安装
1、首先安装ruby
首先把系统自带的ruby删除啦,系统自带ruby版本太低
安装依赖软件
yum -y install zlib-devel libcurl-devel
接着安装yaml
tar xvf /soft/yaml-0.1.4.tar.gz
cd yaml-0.1.4
./configure&&make&&make install
继续安装ruby
tar xvf /soft/ruby-1.9.3-p484.tar.gz
cd ruby-1.9.3-p484
./configure --prefix=/usr/local/ruby --enable-shared --disable-install-doc --with-opt-dir=/usr/local/ && make &&make install
# Listen to incoming data over SSL
<source>
type secure_forward
shared_key 123456 #密码设置,随便设,保持两边一致就行
self_hostname logserver.test.com
cert_auto_generate yes
</source>
# Store Data in Elasticsearch
<match *.**>
type copy
<store>
type elasticsearch
host localhost
port 9200
include_tag_key true
tag_key log_name
logstash_format true
flush_interval 1s
</store>
</match>