on 03-06-2024 12:42 AM
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
User | Count |
---|---|
74 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.