我正在运行 logstash 7.12.1,我尝试运行的管道由于某种原因不接受我的 cloud_auth 语法。它在包含用户:密码对的 " 之后立即出现错误。我已经三重检查了下面的文档,但找不到问题。
https://www.elastic.co/guide/en/logstash/7.12/connecting-to-cloud.html
[错误][Converge PipelineAction::Create] 代理 - 无法执行操作 {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected [ \t\r\n], "#", "{", "}" 之一在第 15 行,第 20 列输出后 {\n elasticsearch { \n cloud_id => "cluster:djMWUw\n cloud_auth => " ", :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:32:incompile_imperative'", "org/logstash/execution/AbstractPipelineExt.java:184:in
初始化'", "org/logstash/execution/JavaBasePipelineExt.java:69:ininitialize'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:47:in
初始化' ", "/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:52:inexecute'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:389:in
块中的收敛状态'"]}
output {
elasticsearch {
cloud_id => "cluster:dXM2VzdEu2NLNs3VkmVLlv5MMQMVOQ5NjiGyafdsg63DFH67M2JhNzlhOTZmOTNjJDM5ZWYyZWNiYzQ2NTliNWM4ZESTGARFHhsrtghsdfMWUw
cloud_auth => "elastic:lpertgAFHJYTNzWFvR2aH"
}
}