push log from logstash-forwarder to logstash

445 views Asked by At

I am not able to push log from logstash-forwarder to logstash here my logstash-forwarder.conf

{ "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" }
    }
]
}

while running following command

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

I am getting following exception...

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
1

There are 1 answers

0
IMParasharG On BEST ANSWER

Now it is working :-

bin/logstash-forwarder -config /etc/logstash-forwarder.conf