cloudfoundry-community / firehose-to-syslog

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

408 Request Time-out while connecting to Firehose #186

Closed therealqxing closed 6 years ago

therealqxing commented 6 years ago

Here's my ops file

---

- type: replace
  path: /releases/-
  value:
    name: logsearch-for-cloudfoundry
    version: 207.0.0
    url: http://bosh.io/d/github.com/cloudfoundry-community/logsearch-for-cloudfoundry?v=207.0.0
    sha1: 5dde900a2800301705261ef653598ad10180d426

- type: replace
  path: /instance_groups/-
  value:
    name: firehose-to-syslog
    azs: [z1]
    instances: 1
    vm_type: 2c_4g_40g
    stemcell: default
    networks:
    - name: default
    jobs:
    - name: ingestor_cloudfoundry-firehose
      release: logsearch-for-cloudfoundry
      properties:
        syslog:
          host: ((syslog_host))
          port: ((syslog_port))
        cloudfoundry:
          api_endpoint: https://api.((system_domain))
          doppler_endpoint: wss://doppler.((system_domain)):((doppler_port))
          skip_ssl_validation: true
          firehose_events:
          - LogMessage
          - ContainerMetric
          - Error
          - HttpStartStop
          - ValueMetric
          firehose_subscription_id: ((firehose_subscription_id))
          firehose_client_id: ((firehose_client_id))
          firehose_client_secret: ((firehose_client_secret))
          firehose_cc_pull_interval: 0
        create-uaa-client:
          cloudfoundry:
            system_domain: ((system_domain))
            uaa_admin_client_id: ((uaa_admin_client_id))
            uaa_admin_client_secret: ((uaa_admin_client_secret))

- type: replace
  path: /variables/-
  value:
    name: firehose_client_secret
    type: password

and the following is ingestor_cloudfoundry-firehose stdout.log and stderr.log

firehose-to-syslog/4cce3d29-cf76-42ea-9481-44853a5e5992:/var/vcap/sys/log/ingestor_cloudfoundry-firehose# tail -f ingestor_cloudfoundry-firehose.stdout.log
[2018-05-10 07:44:51.784041174 +0000 UTC] Starting firehose-to-syslog 0.0.0
wss://doppler.mycf.vip:443
[2018-05-10 07:44:51.897628246 +0000 UTC] Using wss://doppler.mycf.vip:443 as doppler endpoint
2018/05/10 [INFO] Start server listening on :8080
[2018-05-10 07:44:59.736901529 +0000 UTC] Connected to Syslog Server! Connecting to Firehose...
^C

firehose-to-syslog/4cce3d29-cf76-42ea-9481-44853a5e5992:/var/vcap/sys/log/ingestor_cloudfoundry-firehose# tail -f ingestor_cloudfoundry-firehose.stderr.log
2018/05/10 07:45:02 Unsolicited response received on idle HTTP channel starting with "HTTP/1.0 408 Request Time-out\r\nCache-Control: no-cache\r\nConnection: close\r\nContent-Type: text/html\r\n\r\n<html><body><h1>408 Request Time-out</h1>\nYour browser didn't send a complete request in time.\n</body></html>\n"; err=<nil>
^C

and I get the same error while deploying as an app.

shinji62 commented 6 years ago

Please the last version . Thanks