Back to Vector

Require `encoding` option for console and file sinks

website/content/en/highlights/2019-10-21-require-encoding-option-for-console-and-file-sinks.md

0.55.0416 B
Original Source

The dynamic encoding concept in Vector was confusing users, so we've made it required and explicit. Simply add encoding.codec = "json" to your console and file sinks.

Upgrade Guide

Make the following changes in your vector.toml file:

diff
 [sinks.console]
   type = "console"
+  encoding.codec = "json"

 [sinks.file]
   type = "file"
+  encoding.codec = "json"

That's it!