我无法使用Logstash导入Kibana,我的Mac上具有以下版本,请帮助。
我收到此错误
错误消息
unrecognised countries VM option 'UseParNewGC'
Error not create the Java virtual machine
Error fatal exception has occurred. Program will exist.
我已经创建了以下配置文件
配置文件(cars.config)
input {
file {
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter {
csv {
separator => ","
columns => [ "maker", "model", "mileage", "manufacture_year", "engine_power", "fuel_type", "date_created", "price_eur", "door_count", "seat_count" ]
}
mutate {convert => [ "door_count", "integer" ]}
mutate {convert => [ "seat_count", "integer" ]}
}
output {
elasticsearch {
hosts => "localhost"
index => "cars"
document_type => "sold_cars"
}
stdout {}
}
我正在导入的命令
bin/logstash -f cars.config
更新-更改配置后
以下jvm.options
文件中已应用的配置更改:
Remove line: -XX:+UseParNewGC
Remove line: -XX:+UseConcMarkSweepGC
Add: -XX:+UseG1GC
结果/第二次尝试
更新2
答案 0 :(得分:1)
您有两个选择:
jdk8
,并在启动脚本logstash
中添加export JAVA_HOME=/PATH_TO_JDK8/
在jvm.options
文件中:
删除行:-XX:+UseParNewGC
删除行:-XX:+UseConcMarkSweepGC
添加:-XX:+UseG1GC
有关此问题的更多详细信息,请参见https://github.com/elastic/logstash/issues/9316