Back to Vector

Wildcards are now supported in component names

website/content/en/highlights/2021-01-20-wildcard-identifiers.md

0.55.0647 B
Original Source

PR 6170 introduced wildcards when referencing component names in the inputs option. This allows you to build dynamic topologies. This feature comes with one limitation: the wildcard must be at the end of the string.

yaml
sources:
  app1_logs:
    type: "file"
    includes: ["/var/log/app1.log"]

  app2_logs:
    type: "file"
    includes: ["/var/log/app.log"]

  system_logs:
    type: "file"
    includes: ["/var/log/system.log"]

sinks:
  app_logs:
    type: "datadog_logs"
    inputs: ["app*"]

  archive:
    type: "aws_s3"
    inputs: ["app*", "system_logs"]