參考:http://linuxg.blog.51cto.com/4410110/1761757linux
最經常使用架構:redis
1、安裝redis架構
一、下載:http://redis.io/downloadelasticsearch
二、解壓後進入:/Users/enniu1/Desktop/server/redis-3.2.3測試
三、執行make命令spa
四、啓動服務:/Users/enniu1/Desktop/server/redis-3.2.3/src/redis-server3d
五、測試code
切屏後啓動客戶端:/Users/enniu1/Desktop/server/redis-3.2.3/src/redis-cli,以後server
便可。blog
至此,redis搞定!!!
2、啓動es(同前)
3、啓動kibana(同前)
4、啓動logstash-shipper
1 input { 2 stdin{ 3 4 } 5 } 6 7 filter { 8 9 } 10 11 output { 12 redis{ 13 data_type => "list" 14 host => ["127.0.0.1:6379"] 15 key => "microservice:logstash:redis" 16 } 17 }
啓動同前。
5、啓動logstash-indexer
input {
redis{
data_type => "list"
host => "127.0.0.1"
port => 6379
key => "microservice:logstash:redis"
}
}
filter {
}
output {
elasticsearch { hosts => ["127.0.0.1:9200"] }
}
啓動同前。
6、測試
在logstash-shipper中輸入hello redis jigang !!!
查看kibana: