标签:redis gem parent node ruby list ESS sina logs
elasticsearch会依赖于java
# vi /etc/apt/sources.list deb http: //ftp.debian.org/debian/ squeeze main non-free deb-src http: //ftp.debian.org/debian/ squeeze main non-free # apt-get update # apt-cache search sun-java # apt-get install sun-java6-jdk sun-java6-jre # java -version
#
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.6.zip
#
unzip
elasticsearch-0.20.6.zip
#
mv elasticsearch-0.20.6
/usr/local/share/elasticsearch #
cd /usr/local/share/elasticsearch/bin/#
./elasticsearch -f |
#
vi /etc/apt/sources.list deb
http: //ftp.debian.org/debian/
squeeze main non-free deb-src
http: //ftp.debian.org/debian/
squeeze main non-free #
apt-get update #
apt-cache search sun-java #
apt-get install sun-java6-jdk sun-java6-jre #
java -version 开始安装logstash
( 其实logstash 就是一个java脚本,不需要安装... 下载即用 )
# wget https://logstash.objects.dreamhost.com/release/logstash-1.1.9-monolithic.jar
# vi /root/soft/redis.conf
input {
redis {
host => ‘192.168.18.242‘
data_type => ‘list‘
port => "6379"
key => ‘logstash:redis‘
type => ‘redis-input‘
}
}
output {
elasticsearch {
host => ‘192.168.18.243‘
port => "9300"
}
}
# java -jar /root/soft/logstash-1.1.9-monolithic.jar agent -f /root/soft/redis.conf -- web --backend elasticsearch:///?local
现在可以通过浏览器访问一下 http://192.168.18.240:9292 看看logstash是的页面是个什么样子 配置logstash的agent (192.168.18.241)
安装sun-java6-jre sun-java6-jdk
#
wget https://logstash.objects.dreamhost.com/release/logstash-1.1.9-monolithic.jar
# vi /root/soft/redis.conf
input {
stdin {
type => "stdin-type"
}
file {
type => "linux-syslog"
# Wildcards work, here :)
path => [ "/var/log/*.log", "/var/log/messages", "/var/log/syslog" ]
}
}
output {
redis {
host => ‘192.168.18.242‘
data_type => ‘list‘
key => ‘logstash:redis‘
}
}
# java -jar /root/soft/logstash-1.1.9-monolithic.jar agent -f /root/soft/redis.conf &
OK,最后就是 Kibana了 ,我把Kibana装在了 logstash index上面
|
再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow
用Kibana+Logstash+Elasticsearch快速搭建实时日志查询 收集与分析系统
标签:redis gem parent node ruby list ESS sina logs
原文地址:https://www.cnblogs.com/swchswhih/p/10391629.html