Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The configuration validator checks the commented lines. #21025

Closed
robinpecha opened this issue Aug 8, 2024 · 1 comment
Closed

The configuration validator checks the commented lines. #21025

robinpecha opened this issue Aug 8, 2024 · 1 comment
Labels
type: bug A code related bug.

Comments

@robinpecha
Copy link

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

Debian 12 Vector 40
It will fail to run if it contains a non-existent env variable in the comment.
Works fine with this config:

      index: "zzz"
      # index: "zzz_$$$$"
      # index: "zzz_{{{"
      # index: "zzz_${{{"
      # index: "zzz_${HOSTNAME}"

But not with this one:

      index: "zzz"
      # index: "zzz_${somenonexistingvariable}"
      # index: "zzz_$$$$"
      # index: "zzz_{{{"
      # index: "zzz_${{{"
      # index: "zzz_${HOSTNAME}"

Configuration

sources:
  syslog_varlog_messages:
    type: file
    include:
      - "/var/log/dpkg.log"
      

sinks:
  es_journal:
    type: elasticsearch
    inputs: ["*"]
    mode: bulk
    bulk:
      index: "zzz"
      # index: "zzz_$$$$"
      # index: "zzz_{{{"
      # index: "zzz_${{{"
      # index: "zzz_${HOSTNAME}"
      # index: "zzz_${somenonexistingvariable}"
    api_version: auto
    id_key: id
    doc_type: _doc
    compression: zlib
    endpoints: ["https://

Version

vector 0.40.0

Debug Output

2024-08-08T08:04:14.427061Z DEBUG vector::app: Internal log rate limit configured. internal_log_rate_secs=10
2024-08-08T08:04:14.429812Z  INFO vector::app: Log level is enabled. level="trace"
2024-08-08T08:04:14.431372Z DEBUG vector::app: messaged="Building runtime." worker_threads=1
2024-08-08T08:04:14.433733Z  INFO vector::app: Loading configs. paths=["/etc/vector/vector.yaml"]
2024-08-08T08:04:14.436049Z ERROR vector::cli: Configuration error. error=Missing environment variable in config. name = "somenonexistingvariable"

Example Data

No response

Additional Context

No response

References

No response

@robinpecha robinpecha added the type: bug A code related bug. label Aug 8, 2024
@jszwedko
Copy link
Member

jszwedko commented Aug 8, 2024

Thanks for this report @robinpecha ! I think it is the same as #797 so I'll close this one but thanks for the additional detail!

@jszwedko jszwedko closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A code related bug.
Projects
None yet
Development

No branches or pull requests

2 participants