logstash配置示例

  1. input(redis) => output(elasticsearch)
    input {
        redis {
            host => '127.0.0.1'
            data_type => 'list'
            key => 'logstash:redis'
            threads => 10
        }
    }
    
    output {
        elasticsearch {
            host => localhost
            workers => 10
        }
    }

     

posted @ 2020-10-10 23:25  ascertain  阅读(183)  评论(0编辑  收藏  举报