Skip to content

Commit b73de9f

Browse files
authored
docs(config): Make example in guides/level-up/managing-complex-configs work with Vector 0.18 (#10168)
* docs: For sources in tcp/udp mode, the path param does not make sense It is not invalid as of 0.18 but should be. At least lets stop giving such examples. * docs: Fix typo * docs: Fix example config: encoding.codec is required now for console sink
1 parent 00777ee commit b73de9f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: website/content/en/guides/level-up/managing-complex-configs.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ individual files, each with its own unit tests.
181181

182182
## Splitting Configs
183183

184-
If your components start to by used in multiple configuration files, having a
184+
If your components start to be used in multiple configuration files, having a
185185
dedicated place to define them can become interesting.
186186

187187
With Vector you can define a component configuration inside a component type folder.
@@ -194,7 +194,6 @@ type = "syslog"
194194
address = "0.0.0.0:514"
195195
max_length = 42000
196196
mode = "tcp"
197-
path = "/path/to/socket"
198197

199198
[transforms.change_fields]
200199
type = "remap"
@@ -207,6 +206,7 @@ source = """
207206
type = "console"
208207
inputs = ["change_fields"]
209208
target = "stdout"
209+
encoding.codec = "json"
210210
```
211211

212212
We can extract the `syslog` source in the file `/etc/vector/sources/syslog.toml`
@@ -216,7 +216,6 @@ type = "syslog"
216216
address = "0.0.0.0:514"
217217
max_length = 42000
218218
mode = "tcp"
219-
path = "/path/to/socket"
220219
```
221220

222221
The `change_fields` transform in the file `/etc/vector/transforms/change_fields.toml`

0 commit comments

Comments
 (0)