下载地址:

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{}
}

相关文章:

  • 2022-12-23
  • 2021-06-18
  • 2022-12-23
  • 2021-07-01
  • 2021-12-01
  • 2021-12-02
  • 2021-10-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-06
  • 2021-08-23
  • 2021-12-02
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
相关资源
相似解决方案