下载地址:
https://www.elastic.co/downloads
版本:logstash-2.2.2
两台linux虚拟机,一台windows宿主机
shipper: 192.168.220.128 (centos7)
indexer: 192.168.220.129 (centos7)
broker(redis2.6): 192.168.220.1(windows) 部署一个elasticsearch-1.6.0
shipper配置:
input{
stdin{}
}
output{
redis{
host=>"192.168.220.1"
port=>6379
db=>0
data_type=>"channel"
key=>"test"
}
}
indexer配置:
input{
redis{
host=>"192.168.220.1"
port=>6379
db=>0
data_type=>"channel"
key=>"test"
}
}
output{
elasticsearch{
hosts => ["192.168.220.1:9200"]
index => "logstash"
document_type => "test"
}
stdout{}
}
时间: 2024-10-05 13:17:28