拓扑结构:
Redis------>Logstash------->Elasticsearch<-----------------Kibana
1. redis (192.168.1.115)
[root@redis1 ~]# redis-server /etc/redis.conf
22575:C 23 Mar 17:22:07.795 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
22575:C 23 Mar 17:22:07.795 # Redis version=4.0.6, bits=64, commit=00000000, modified=0, pid=22575, just started
22575:C 23 Mar 17:22:07.795 # Configuration loaded
[root@redis1 ~]# netstat -tulnp | grep 63
tcp 0 0 192.168.1.115:6379 0.0.0.0:* LISTEN 22576/redis-server
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 22576/redis-server
[root@redis1 ~]# redis-cli
127.0.0.1:6379> ping
PONG
2. logstash(192.168.1.112)
定义redis中的数据类型,键,端口,数据库编号
[root@logstash conf.d]# vim redis1.conf
input {
redis {
data_type => "list"
key => "logstash-test-list"