Skip to content

Instantly share code, notes, and snippets.

@godber
Created September 13, 2022 23:03
Show Gist options
  • Save godber/46c94de847dd7217d3ac9bdf2f5800c2 to your computer and use it in GitHub Desktop.
Save godber/46c94de847dd7217d3ac9bdf2f5800c2 to your computer and use it in GitHub Desktop.
vector.dev sample json
---
api:
enabled: true
data_dir: /tmp/vector-data-dir
sources:
demo:
type: "demo_logs"
format: "json"
interval: 2.0
transforms:
parse_demo:
type: remap
inputs:
- demo
source: |-
.foo = "bar"
sinks:
stdout:
type: console
inputs:
- parse_demo
encoding:
codec: text
@godber
Copy link
Author

godber commented Sep 14, 2022

Changing the sink.stdout.encoding: json resolved my confusion around this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment