Failed to execute action :action=>LogStash::PipelineAction::Create/pipeline_id:main

喜你入骨 提交于 2021-01-29 03:51:00

问题


I have installed ELK stack version 7.0.0 on my CentOS7 VM and I faced with an issue during Logstash service start:

[ERROR] 2019-05-13 08:21:37.359 [Converge PipelineAction::Create] agent - Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"MultiJson::ParseError", :message=>"JrJackson::ParseError", :backtrace=>["/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/multi_json-1.13.1/lib/multi_json/adapter.rb:20:in load'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/multi_json-1.13.1/lib/multi_json.rb:122:inload'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/avro-1.8.2/lib/avro/schema.rb:36:in parse'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-codec-avro-3.2.3-java/lib/logstash/codecs/avro.rb:69:inregister'", "/usr/share/logstash/logstash-core/lib/logstash/codecs/base.rb:18:in initialize'", "org/logstash/plugins/PluginFactoryExt.java:255:inplugin'", "org/logstash/execution/JavaBasePipelineExt.java:50:in initialize'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:23:ininitialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:36:in execute'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:325:inblock in converge_state'"]}

Please help to figure out a way to resolve this issue. Similar installation on another Centos VM is working fine.


回答1:


I think you are cofiguration json format not parsing in logstash.yml file

put simple configuration like blow

input {     
  beats {
    port => 5044
 }
}
output {
 stdout { codec => rubydebug }  

 elasticsearch {
  hosts => ["http://ip:9200"]
 }
}


来源:https://stackoverflow.com/questions/56108952/failed-to-execute-action-action-logstashpipelineactioncreate-pipeline-idm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!