vectordotdev / vectordotdev/vector

Fallback values for templated fields

Open
#1,692 5 comments 31 reactions 1 assignee View on GitHub

@bruceg is already working on this.

Since Aug 12, 2022.

domain: config domain: templating have: should needs: approval needs: requirements
Dominant language
Rust
Stars
22.6k
Forks
2.3k
Avg merge
1d 7h
Merged PRs (30d)
146

Description

When interpolating event fields, it would be helpful to specify a fallback value for when the specified field is not present.

Some questions to answer before implementing:

  • Should we support falling back to a different field?
  • Should we support a chain of fallbacks?
  • How to determine when to fall back? Only when the field is not present? What about empty values?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.