Logstash问题正在运行

时间:2018-07-30 08:00:35

标签: elasticsearch logstash

美好的一天:

我已经在Ubuntu上安装了Logstash,并尝试从命令行运行此命令

./logstash -f ../config/SalesForceLogStash.conf

但是,我遇到以下问题:

[INFO ] 2018-07-30 07:47:52.841 [LogStash::Runner] runner - Starting Logstash {"logstash.version"=>"6.3.2"}
[ERROR] 2018-07-30 07:47:53.180 [Converge PipelineAction::Create<main>] agent - Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of #, input, filter, output at line 1, column 1 (byte 1) after ", :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:42:in `compile_imperative'", "/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:50:in `compile_graph'", "/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:12:in `block in compile_sources'", "org/jruby/RubyArray.java:2486:in `map'", "/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:11:in `compile_sources'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:49:in `initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:167:in `initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:40:in `execute'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:305:in `block in converge_state'"]}
logstash@Logstash:/usr/share/logstash/bin$

有想法吗?

已更新

这是我的SalesForceLogStash.conf here

的内容

我已经对此进行了测试,但是尚不确定现在正在发生什么。

1 个答案:

答案 0 :(得分:0)

正如Val所指出的,我需要使用从第1列开始的SalesForceLogStash.conf属性来格式化我的input, filter and output属性。