Skip to content

Vector does not reload vrl file #23820

@alexeynl

Description

@alexeynl

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

I found in release notes that starting from v0.47.0 support for reload vrl files added.

Image

But this does not work when config reloaded using SIGHUP (systemctl reload vector.service). In this case in vector logs i see message that config was reloaded but changes from vrl do not actually applied. I check changes by vector tap.
If i embedded this changes to yaml transform after reload i see changes using vector tap.

Configuration

sources.yaml

sources:
  test-source:
    type: vector
    address: 0.0.0.0:12345

transforms.yaml

transforms:
  test-embedded-vrl:
    type: "remap"
    source: |-
      .debug = "embedded_01"
    inputs:
      - test-source
  test-external-vrl:
    type: "remap"
    file: "/etc/vector/test/vrl/test.vrl"
    inputs:
      - test-source

/etc/vector/test/vrl/test.vrl

.debug = "external_01"

Version

0.49

Debug Output


Example Data

No response

Additional Context

No response

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain: reloadAnything related to reloading Vector (updating configuration)type: bugA code related bug.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions