我安装了lOgstash,ELK和KIbana,所有3个都正常工作。 下面是我的logstash.conf
input {
lumberjack {
port => "5000"
type => "common-logging-access"
ssl_certificate => "C:/Sunil/HSL/SSL/logstash-forwarder.crt"
ssl_key => "/Myfolder/SSL/logstash-forwarder.key"
}
}
filter {
mutate {
add_field => [ "hostip", "%{host}" ]
add_field => ["systemName","common-logging-app"]
}
dns {
reverse => [ "host" ]
action => replace
}
}
output {
elasticsearch {
host => "localhost"
protocol => "http"
}
}
and below is logstash-forwarder.conf.
{
"network": {
"servers": [ "127.0.0.1:5000" ],
"ssl certificate": "/Myfolder/SSL/logstash-forwarder.crt"
},
"files": [
{
"paths": [
"/var/logs/common-logging/*.log"
],
"fields": { "type": "commonUiLogs" }
}, {
"paths": [ "/var/logs/Logstash/elasticsearch-1.3.4/logs/*.log"],
"fields": { "type": "apache" }
}
]
}
证书是使用创建的 openssl req -x509 -batch -nodes -newkey rsa:2048 -keyout logstash-forwarder.key -out logstash-forwarder.crt -days 365
当我使用命令logstash-forwarder -config logstash-forwarder.conf运行转发器时
显示错误
2015/01/12 16:38:03.509240连接到[127.0.0.1]:5000(127.0.0.1) 2015/01/12 16:38:03.511240无法与127.0.0.1 tls握手:服务器选择了不支持的协议版本301
我正在使用以下版本 logstash-1.4.2 elasticsearch-1.3.4 kibana-3.1.1 我正在使用WIndows 7 64位机器。
请帮我解决这个问题。
的问候, 苏尼。
答案 0 :(得分:0)
Logstash服务器现在提供tls协议版本,现在注意到它是不安全的。请将运行logstash实例的java升级到最新版本。