Hi,
I am new to this forum, trying to learn the ELK stack on my own . Thanks to ELK documentation on the website uploaded.
i was able to install and configure Elastic Search, Kibana softwares however when trying to configure Logstash, I am stuck at this and need your help on how to overcome this please.
After installing logstash, I configured *.conf with the following code and tried to run the command : ./logstash but it is giving lots of errors.
logstash.confg
input { beats {port => 5044 } }
output {
elasticsearch { hosts => ["localhost:9200"] }
stdout { codec => rubydebug }
}
Errors:
Sending Logstash's logs to /home/oracle/logstash-6.1.1/logs which is now configured via log4j2.properties
2018-01-18 08:21:07,378 main ERROR Unable to invoke factory method in class class org.apache.logging.log4j.core.layout.JsonLayout for element JSONLayout. java.lang.reflect.InvocationTargetException
Caused by: java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider.addFilter(Ljava/lang/String;Lcom/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter;)
Lcom/fasterxml/jackson/databind/ser/impl/SimpleFilterProvider;
2018-01-18 08:21:07,408 main ERROR Unable to invoke factory method in class class org.apache.logging.log4j.core.layout.JsonLayout for element JSONLayout. java.lang.reflect.InvocationTargetException
[2018-01-18T08:21:09,957][ERROR][logstash.agent ] An exception happened when converging configuration {:exception=>RuntimeError, :message=>"Could not fetch the configuration, message: Failed to coerce value to Integer.
Received 1 (actually defaults to number of CPUs) (String)", :backtrace=>["/home/oracle/logstash-6.1.1/logstash-core/lib/logstash/agent.rb:155:in `converge_state_and_update'", "/home/oracle/logstash-6.1.1/logstash-
core/lib/logstash/agent.rb:90:in execute'", "/home/oracle/logstash-6.1.1/logstash-core/lib/logstash/runner.rb:343:in
block in execute'", "/home/oracle/logstash-6.1.1/vendor/bundle/jruby/2.3.0/gems/stud-0.0.23/lib/stud/task.rb:24:in `block in
initialize'"]}
[2018-01-18T08:21:10,210][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
My Apologies for this huge error log, could you please help me overcoming these errors ?
Kind Regards
Bheeshma.