Skip to content

Conversation

nekorro
Copy link
Contributor

@nekorro nekorro commented Oct 1, 2025

Summary

On receiving SIGHUP Vector now also reloads transform components with external VRL files.

Vector configuration

./config/config.yaml

sources:
  test-source:
    type: demo_logs
    interval: 2
    format: json

transforms:
  test-embedded-vrl:
    type: "remap"
    source: |-
      .debug = "embedded_01"
    inputs:
      - test-source
  test-external-vrl:
    type: "remap"
    file: "./config/test.vrl"
    inputs:
      - test-source
      
sinks:
  console:
    inputs:
      - test-embedded-vrl
      - test-external-vrl
    target: stdout
    type: console
    encoding:
      codec: json

./config/test.vrl

.debug = "external_01"

How did you test this PR?

  1. Run vector with vector -vv -c ./config/config.yaml
  2. Ensure that output contains events from both transforms
image
  1. Change content of test.vrl to .debug = "external_01_modified"
  2. Change source of test-embedded-vrl to .debug = "embedded_01_modified"
  3. Send SIGHUP to vector process
  4. Ensure that output contains events from both transforms with modified values
image image

Change Type

  • Bug fix
  • New feature
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the no-changelog label to this PR.

References

Notes

  • Please read our Vector contributor resources.
  • Do not hesitate to use @vectordotdev/vector to reach out to us regarding this PR.
  • Some CI checks run only after we manually approve them.
    • We recommend adding a pre-push hook, please see this template.
    • Alternatively, we recommend running the following locally before pushing to the remote branch:
      • make fmt
      • make check-clippy (if there are failures it's possible some of them can be fixed with make clippy-fix)
      • make test
  • After a review is requested, please avoid force pushes to help us review incrementally.
    • Feel free to push as many commits as you want. They will be squashed into one before merging.
    • For example, you can run git merge origin master and git push.
  • If this PR introduces changes Vector dependencies (modifies Cargo.lock), please
    run make build-licenses to regenerate the license inventory and commit the changes (if any). More details here.

@nekorro nekorro requested a review from a team as a code owner October 1, 2025 13:03
On receiving SIGHUP Vector now also reloads transform components with
external VRL files.
@nekorro nekorro force-pushed the feat-sighup-reload-transforms branch from 08c9588 to d5dbcaa Compare October 1, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vector does not reload vrl file

1 participant