如何在 logstash 管道输出中格式化 "cloud_auth"
How to format "cloud_auth" in logstash pipeline output
我是 运行ning logstash 7.12.1,我尝试 运行 的管道由于某种原因不接受我的 cloud_auth 语法。它在包含 user:password 对的 " 之后立即出错。我已经三次检查了下面的文档,但找不到问题。
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=>"在第 15 行第 20 列输出后预期 [ \t\r\n]、"#"、"{"、"}" 之一 {\n elasticsearch { \n cloud_id = > "集群:djMWUw\n cloud_auth => "", :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:32:in compile_imperative'", "org/logstash/execution/AbstractPipelineExt.java:184:in
initialize'", "org/logstash/execution/JavaBasePipelineExt.java:69:in initialize'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:47:in
initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:52:in execute'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:389:in
block in converge_state'"]}
output {
elasticsearch {
cloud_id => "cluster:dXM2VzdEu2NLNs3VkmVLlv5MMQMVOQ5NjiGyafdsg63DFH67M2JhNzlhOTZmOTNjJDM5ZWYyZWNiYzQ2NTliNWM4ZESTGARFHhsrtghsdfMWUw
cloud_auth => "elastic:lpertgAFHJYTNzWFvR2aH"
}
}
您在 cloud_id 末尾缺少双引号。
我是 运行ning logstash 7.12.1,我尝试 运行 的管道由于某种原因不接受我的 cloud_auth 语法。它在包含 user:password 对的 " 之后立即出错。我已经三次检查了下面的文档,但找不到问题。
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=>"在第 15 行第 20 列输出后预期 [ \t\r\n]、"#"、"{"、"}" 之一 {\n elasticsearch { \n cloud_id = > "集群:djMWUw\n cloud_auth => "", :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:32:in compile_imperative'", "org/logstash/execution/AbstractPipelineExt.java:184:in
initialize'", "org/logstash/execution/JavaBasePipelineExt.java:69:in initialize'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:47:in
initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:52:in execute'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:389:in
block in converge_state'"]}
output {
elasticsearch {
cloud_id => "cluster:dXM2VzdEu2NLNs3VkmVLlv5MMQMVOQ5NjiGyafdsg63DFH67M2JhNzlhOTZmOTNjJDM5ZWYyZWNiYzQ2NTliNWM4ZESTGARFHhsrtghsdfMWUw
cloud_auth => "elastic:lpertgAFHJYTNzWFvR2aH"
}
}
您在 cloud_id 末尾缺少双引号。