为什么logstash需要这么长时间才能启动/加载? [英] Why does logstash take so long to start/load?

查看:308
本文介绍了为什么logstash需要这么长时间才能启动/加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我更改了标题,因为该问题不是我最初考虑的.事实是,logstash启动需要一分钟以上的时间,这可能会被误解为沉默" ...

Edit : I changed the title because the issue was not what I initially thought. The fact is that logstash takes more than a minute to starts, which can be misinterpreted as "silence"...

我正在尝试使logstash运行,因此我已经按照官方网站上的指示进行了独立安装:

I'm trying to make logstash running, so I've followed the instruction on the official site for a standalone installation : http://logstash.net/docs/1.1.4/tutorials/getting-started-simple

基本上,我得到了logstash-1.1.4-monolithic.jar文件,然后构建了一个非常简单的配置文件:(example.conf)

Basically, I got the logstash-1.1.4-monolithic.jar file, then build a very simple config file : (example.conf)

input {
  stdin { type => "stdin-type"  }
}
output {
  stdout { debug_format => "json" }
}

但是当我运行logstash时,什么都没出现(我在STDIN中键入随机文本,但没有响应):

But when I run logstash, nothing is coming out (I'm typing random text in STDIN, but get no response) :

# java -jar logstash-1.1.4-monolithic.jar agent -f example.conf
Test
toto
hey ??? Wakeup !!!
^C

(有关信息:Java版本正确)

(For information : Java version is correct)

# java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)

请,有人可以告诉我我想念什么吗?

Please, can someone tell me what I'm missing ?

推荐答案

好,我是一个人发现的.

Ok, I've found by myself.

一切正常.只是logstash推出时间太长了.在我(不起眼的)服务器上超过60秒! 事实证明,启动时什么也没印出来……

Everything was working just fine. It's just that logstash is soooooo long to launch. More than 60 seconds on my (humble) server !! Add to that huge starting time the fact that nothing is printed when launched...

这篇关于为什么logstash需要这么长时间才能启动/加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆