0

我无法在我的 logstash-forwarder.conf 中将日志从 logstash-forwarder 推送到 logstash

{ "network":{
 "servers": [ "logstash_server_private_address:5000" ],
    "timeout": 15,
    "ssl ca": "/etc/pki/tls/certs/logstash-forwarder.crt"
},
"files":[

{
      "paths": [
        "/var/log/syslog",
        "/var/log/auth.log"
       ],
      "fields": { "type": "syslog" }
    }
]
}

在运行以下命令时

$ /opt/logstash-forwarder/bin/logstash-forwarder -config /etc/↩
logstash-forwarder/logstash-forwarder.conf

我收到以下异常...

Failed unmarshalling json: invalid character '\x00' looking for beginning of value.  Could not load config file /etc/NetworkManager invalid character '\x00' looking for beginning of value
4

1 回答 1

1

现在它正在工作:-

bin/logstash-forwarder -config /etc/logstash-forwarder.conf
于 2015-07-14T11:40:56.913 回答