cancel
Showing results for 
Search instead for 
Did you mean: 

Cloudfoundry logs via syslog drain with https schema

yasusuzu
Newcomer
0 Kudos

Team,

Just wondering if we could send application and/or cloudfoundry logs via syslog-drain with https schema.

In this document, it says as follows. It looks like https schema is supported.

----

Cloud Foundry uses the syslog URL to route messages to the service. The syslog URL has a scheme of syslog, syslog-tls, or https, and can include a port number. For example:

syslog://logs.example.com:1234

---

I'm now trying to ingest those logs via syslog-drain with https schema but the endpoint I want to ingest logs to requires the specific HTTP headers with api token and data format like this.

 

'Content-Type': 'application/json; charset=utf-8'
'Authorization': 'Api-Token <MY SECRET TOKEN>'

 

 How do I set those headers in syslog-drain configuration? I just add them into credential field as JSON format in the following way however it looks like it doesn't work well.

 

{
    "Authorization": "Api-Token <MY SECRET TOKEN>",
    "Content-Type": "application/json; charset=utf-8"
}

 

 How do I configure http headers when we use syslog-drain with https schema?

Best regards,

Yas

Accepted Solutions (0)

Answers (0)