Failed to execute action error

Hi,

After running conf file from command prompt we are getting below error, please help us

Error Details :

C:\Users\VAVVARU\Desktop\ELK_Softwares\logstash-7.6.2\bin>logstash -f pipeline.conf
Sending Logstash logs to C:/Users/VAVVARU/Desktop/ELK_Softwares/logstash-7.6.2/logs which is now configured via log4j2.properties
[2020-04-30T13:30:26,414][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2020-04-30T13:30:26,621][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.6.2"}
[2020-04-30T13:30:28,583][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of [ \t\r\n], "#", "{", [A-Za-z0-9_-], '"', "'", "}" at line 9, column 2 (byte 141) after input {\r\n\tfile {\r\n\r\n\r\n\tpath => "C:\PegaPersonalEdition\PRPCPersonalEdition\tomcat\work\Catalina\localhost\prweb\PegaRULES.json.log"\r\n\r\n\r\n\r\n\t", :backtrace=>["C:/Users/VAVVARU/Desktop/ELK_Softwares/logstash-7.6.2/logstash-core/lib/logstash/compiler.rb:41:in compile_imperative'", "C:/Users/VAVVARU/Desktop/ELK_Softwares/logstash-7.6.2/logstash-core/lib/logstash/compiler.rb:49:in compile_graph'", "C:/Users/VAVVARU/Desktop/ELK_Softwares/logstash-7.6.2/logstash-core/lib/logstash/compiler.rb:11:in block in compile_sources'", "org/jruby/RubyArray.java:2580:in map'", "C:/Users/VAVVARU/Desktop/ELK_Softwares/logstash-7.6.2/logstash-core/lib/logstash/compiler.rb:10:in compile_sources'", "org/logstash/execution/AbstractPipelineExt.java:161:in initialize'", "org/logstash/execution/JavaBasePipelineExt.java:47:in initialize'", "C:/Users/VAVVARU/Desktop/ELK_Softwares/logstash-7.6.2/logstash-core/lib/logstash/java_pipeline.rb:27:in initialize'", "C:/Users/VAVVARU/Desktop/ELK_Softwares/logstash-7.6.2/logstash-core/lib/logstash/pipeline_action/create.rb:36:in execute'", "C:/Users/VAVVARU/Desktop/ELK_Softwares/logstash-7.6.2/logstash-core/lib/logstash/agent.rb:326:in block in converge_state'"]}
[2020-04-30T13:30:29,511][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2020-04-30T13:30:34,147][INFO ][logstash.runner ] Logstash shut down.

Logstash conf file configuration:

input {
file {
path => "C:\PegaPersonalEdition\PRPCPersonalEdition\tomcat\work\Catalina\localhost\prweb\PegaRULES.json.log"
​ }
}

output {
elasticsearch {
hosts => ["localhost:9200"]
index => "blocks"
}
}

Do not use backslash in the path option of a file input, use forward slash (or, if you really insist, double backslash, so that the first escapes the second). That said, I am uncertain why you are getting that error.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.