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

Log error=Missing environment variable in config for comment in config #20679

Closed
alexpts opened this issue Jun 15, 2024 · 1 comment
Closed
Labels
type: bug A code related bug.

Comments

@alexpts
Copy link

alexpts commented Jun 15, 2024

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

On start I have ERROR vector::cli: Configuration error. error=Missing environment variable in config. name = "ES_HOST"

I don't expect variables to be checked in configuration comments.

Configuration

sinks:
  es:
    inputs: ["json_parser"]
    type: "elasticsearch"
    mode: "bulk"
    acknowledgements:
      enabled: true
    bulk:
      index: "vector-{{ _vector._es_index }}-%Y.%m.%d" # https://docs.rs/chrono/0.4.19/chrono/format/strftime/index.html#specifiers
      #index = "{{ _es_index }}"
    #endpoints = "${ES_HOST}"  # указывается с протоколом и портом
    endpoints: ["http://elasticsearch:9200"]
    compression: "gzip"

Version

version="0.38.0" arch="aarch64" revision="ea0ec6f 2024-05-07 14:34:39.794027186"

Debug Output

No response

Example Data

No response

Additional Context

macos 14.5 + docker image timberio/vector:0.38.X-alpine

References

No response

@alexpts alexpts added the type: bug A code related bug. label Jun 15, 2024
@jszwedko
Copy link
Member

Thanks for filing @alexpts ! I think this is a duplicate of #797 so I'll close this one, but let me know if you disagree (and feel free to follow along on that issue).

@jszwedko jszwedko closed this as not planned Won't fix, can't repro, duplicate, stale Jun 17, 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