logstash有简单的批量生成插件。generator。详情见官网:https://www.elastic.co/guide/en/logstash/current/plugins-inputs-generator.html

使用方法:配置文件修改为

input {
  generator {
    lines => [
    "line 1",
    "line 2",
    "line 3"
    ]
  count => 3
  }
}

#下面的输出部分可以替换成其他输出插件。例如elasticsearch或者redis,mongo等。 output { stdout {   codec => dots } }

LogStash 本身并不维护队列。这里,需要熟练使用本节说的测试方法,针对自己的每一段配置,都确定其性能。LogStash 给自己的线程都设置了单独的线程名称,你可以在 top -H 结果中查看具体线程的负载情况。

参考:http://udn.yyuap.com/doc/logstash-best-practice-cn/input/generator.html

相关文章:

  • 2021-09-19
  • 2021-06-03
  • 2021-05-30
  • 2022-01-13
  • 2021-11-19
  • 2021-09-15
  • 2022-01-05
  • 2022-12-23
猜你喜欢
  • 2021-04-26
  • 2021-06-14
  • 2022-12-23
  • 2021-12-31
  • 2021-12-16
  • 2021-10-11
  • 2022-02-28
相关资源
相似解决方案