logsearch / nats_to_syslog Goto Github PK
View Code? Open in Web Editor NEWSubscribes to NATs message bus and forwards messages to remote Syslog server
License: Apache License 2.0
Subscribes to NATs message bus and forwards messages to remote Syslog server
License: Apache License 2.0
Hi,
I sat up correctly the nats connection. nats://nats:[email protected]:4222
. however, i got the following error from ingestor-bosh-nats VM
{"timestamp":"1496958794.021312475","source":"nats_to_syslog","message":"nats_to_syslog.connecting-to-nats.error","log_level":2,"data":{"error":"nats: no servers available for connection","session":"1"}}.
Could i know why please?
Thank you!
My team been using nats_to_syslog for a long time against nats on older bosh directors... With a new director, it appears that the director requires TLS and so we're trying to play along. The adventure thus far:
nats: secure connection required error
and so we updated our URL prefix to be tls://
instead of nats://
x509: certificate signed by unknown authority
, resolved by placing the NATS server CA cert on the host running nats_to_syslogremote error: bad certificate
, presumably due to having an IP address in our URL but the cert having CN of default.nats-ca.bosh-internal
(and no subject alternative names matching the IP address)I see that Golang offers a brute force way to allow insecure TLS via InsecureSkipVerify. That is appropriate for our use case (several layers deep within private networks) but not aligned with the "greater good" if we submit a PR back to master.
Some internet sleuthing suggests that Golang offers a way to specify expected server name in cases where reaching TLS server via IP address. Per this on StackOverflow, it seems that we could have the app allow a server name such as default.nats-ca.bosh-internal
to be passed in via argument, and then internally it could set tls.Config.ServerName to this value. Or have a "resolve" argument similar to curl --resolve
, where one could use the cert-matching name in the URL but provide the desired name-to-IP mapping.
Any advice on how to proceed?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.