cloudfoundry-community / firehose-to-syslog

Send firehose events from Cloud Foundry to syslog.
MIT License
44 stars 58 forks source link

Err: too many colons in address #175

Closed LYHuang closed 6 years ago

LYHuang commented 6 years ago

Command to push: cf push firehose-to-syslog --no-route

manifest.yml setting:

applications:
- name: firehose-to-syslog
  health-check-type: process
  env:
    GOPACKAGENAME: github.com/cloudfoundry-community/firehose-to-syslog
    API_ENDPOINT: https://api.[some cf].com
    DEBUG: false
    DOPPLER_ENDPOINT: wss://[some endpoint]:443
    EVENTS: LogMessage,ValueMetric,Error,ContainerMetric
    FIREHOSE_CLIENT_ID: [some id]
    FIREHOSE_CLIENT_SECRET: [some secret]
    FIREHOSE_SUBSCRIPTION_ID: firehose-a
    LOG_EVENT_TOTALS: true
    LOG_EVENT_TOTALS_TIME: 10s
    SKIP_SSL_VALIDATION: true
    SYSLOG_ENDPOINT: syslog://example.com:1234
    SYSLOG_PROTOCOL: tcp  # tcp/udp/tcp+tls
    CERT_PEM: cert.pem  # $ curl https://download.yourlogprovider.tld/their.crt > cert.pem

Error message from log:

[ERR] Exception occurred! Message: Unable to connect to syslog server [syslog://example.com:1234]!
[ERR] Details: dial tcp: address syslog://eample.com:1234: too many colons in address
[ERR] Exception occurred! Message: Failed connecting to the Syslog Server...Please check settings and try again! Details:

Already try SYSLOG_ENDPOINT: "[syslog://example.com:1234]" but get another error [ERR] Details: dial tcp: address [syslog://example.com:1234]: missing port in address, would like to know how to set it properly.