Skip to content
Discussion options

You must be logged in to vote

I ran a quick example:

part1:

[sources.s0]
type = "demo_logs"
format = "shuffle"
lines = ["test line"]
interval = 10

[sources.s1]
type = "demo_logs"
format = "apache_error"
interval = 5

[sinks.console]
  type = "console"
  inputs = [ "s0"]

[sinks.console.encoding]
  codec = "json"

part2:

[sinks.console]
  inputs = [ "s1"]

The resulting inputs should be the union of the two. We can see events from both sources in the following sample output:

{"host":"localhost","message":"[Wed Aug 27 11:25:53 2025] [BronzeGamer:info] [pid 9825:tid] [client 163.17.2.35:24717] There's a breach in the warp core, captain","service":"vector","source_type":"demo_logs","timestamp":"2025-08-27T15:25:53.570580Z…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@RomanChernyshev
Comment options

@pront
Comment options

Answer selected by pront
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
domain: config Anything related to configuring Vector
2 participants