我已经安装了 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 位机器。
请帮助我。
问候,苏尼尔。