logstash之input配置generator类型详解

用途
生成测试数据
配置示例
input {
    generator {
        count => 100
        message => 'hello world'
        codec => json
    }
}

output {
    stdout {
        codec => rubydebug
    }
}

启动
bin/logstash -f /etc/logstash/conf.d/demo-input-generator.conf



Tagged , , . Bookmark the permalink.

Comments are closed.