My operating system is Linux Ubuntu 18.04. I have installed Logstash and I try to run it with a command:
sudo /usr/share/logstash/bin/logstash.
But I get a startup error:
[ERROR] 2018-05-12 20:54:15.228 [main] Logstash -
java.lang.IllegalStateException: org.jruby.exceptions.RaiseException:
(OpenSSL::X509::StoreError) setting default path failed: the
trustAnchors parameter must be non-empty
The configuration file:
input {
kafka {
bootstrap_servers = "localhost:9092"
topics = ["cpu_metrics"]
enable_auto_commit = "true"
type = "cpu"
}
}
output {
if [type] == "cpu" {
file {
path => "/home/cpu/cpu.log"
}
}
}