Hi all! We are trying to send Fly log to Datadog but we’re getting the following error when running
vector::cli: Configuration error. error=unknown field `codec`, expected one of `only_fields`, `except_fields`, `timestamp_format` for key `sinks.datadog`
Is there anyone that knows what we are doing wrong?
We fixed it by modifying
- Removing the
encoding.codec = json
- We then got access denied errors, because the
site wasn’t defined. We are using
Yes, I was about to post about the encoding bug. I’ll create a PR to get that fixed.
Can you edit the datadog.toml again and add
site = "datadoghq.eu" to see if that resolves your issue?
site = datadoghq.eu works
Thanks for the confirmation ( and finding the issue ). We’ll get in a fix.
Perhaps adding a
DATADOG_SITE env would be a nice option.