SumoLogic / sumologic-cloudfoundry-nozzle

A cloudfoundry nozzle that outputs to Sumologic
Apache License 2.0
3 stars 3 forks source link

Log collection stops when client fails to refresh #17

Closed duchatran closed 5 years ago

duchatran commented 5 years ago

From a customer:
2019-01-15T09:52:50.746-06:00 [APP/PROC/WEB/0] [ERR] ERROR: 2019/01/15 15:52:50 firehoseclient.go:92: Error while reading from the firehose: Error getting bearer token: oauth2: cannot fetch token: 401 Unauthorized. 2019-01-15T09:52:50.746-06:00 [APP/PROC/WEB/0] [ERR] Response: {"error":"invalid_token","error_description":"Invalid refresh token expired at Fri Dec 21 21:07:44 UTC 2018"}. 2019-01-15T09:52:51.384-06:00 [APP/PROC/WEB/1] [OUT] INFO: 2019/01/15 15:52:51 sumoLogicAppender.go:81: Log queue size: 0. 2019-01-15T09:52:59.340-06:00 [RTR/2] [OUT] sumo-logic-nozzle.dfw-app.<retracted>.com - [2019-01-15T15:52:59.338+0000] "OPTIONS /cloudfoundryapplication HTTP/1.1" 502 0 67 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" "10.213.144.5:50473" "10.113.148.57:61026" x_forwarded_for:"10.29.50.64%2, 10.213.144.5" x_forwarded_proto:"https" vcap_request_id:"<retracted>" response_time:0.002532877 app_id:"8db6134e-c51a-<retracted>101d" app_index:"1" x_b3_traceid:"c82cc092be0014c1" x_b3_spanid:"c82cc092be0014c1" x_b3_parentspanid:"-"

Logs will completely stop during this time.

duchatran commented 5 years ago

Fixed with PR19.