用途 生成测试数据 配置示例 input { generator { count => 100 message => 'hello world' codec => json } } output { stdout { codec => rubydebug } } 启动 bin/logstash -f /etc/logstash/conf.d/demo-input-generator.conf