我试图运行logstash 5.2.0
I downloaded the .tar version from https://www.elastic.co/downloads/logstash
当我跑步时:
logstash-5.2.0/bin/logstash -f logstash-filter.conf
我收到此错误:
Unable to find JRuby.
If you are a user, this is a bug.
If you are a developer, please run 'rake bootstrap'. Running 'rake' requires the 'ruby' program be available.
我查了一下,jruby来了下载。我从供应商处下载了这个文件夹:
../ logstash-5.2.0 /供应商/束/的jruby / 1.9
我在Mac上运行。
这是logstash-filter.conf
的内容input {
file {
path => "path/pixel_sample_data.csv"
start_position => "beginning"
tags => #array (optional)
type => #string (optional)
}
}
filter{
csv{
columns =>
[... colummns ...]
separator => ","
}
date {
match => ["date","MM-dd-yyyy"]
}
}
output{
elasticsearch {
host => "localhost"
}
}
我该如何解决这个问题?