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

convert-config produces invalid config #19640

Open
positron96 opened this issue Jan 17, 2024 · 3 comments
Open

convert-config produces invalid config #19640

positron96 opened this issue Jan 17, 2024 · 3 comments
Labels
domain: config Anything related to configuring Vector type: bug A code related bug.

Comments

@positron96
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

I am trying to convert my rather simple TOML config into YAML one, and the file produced by vector convert-config is rejected by vector --config file.yaml due to these 2 errors:

  • Configuration error. error=schema.log_namespace: invalid type: unit value, expected any valid TOML value at line 8 column 18

Produced by this portion:

schema:
  enabled: false
  validation: false
  log_namespace: null
  • Configuration error. error=unknown field global

Produced by this portion:

global:
  data_dir: /var/lib/vector/

All these values are not present in original TOML, so I fixed the config by removing these sections.

Configuration

No response

Version

0.35.0

Debug Output

No response

Example Data

No response

Additional Context

No response

References

No response

@positron96 positron96 added the type: bug A code related bug. label Jan 17, 2024
@jszwedko
Copy link
Member

Hi @positron96 ! Can you provide the TOML file you were using as input? Or one that reproduces this behavior, at least?

@jszwedko jszwedko added the domain: config Anything related to configuring Vector label Jan 17, 2024
@positron96
Copy link
Author

Hi! Yes, here are the files. I sanitized them a bit added "txt" extension to upload to github:
vector.toml.txt
vector.yaml.txt

vector.toml works for me (or at least before sanitation), while vector.yaml fails in at least 2 places, described above.

@jszwedko
Copy link
Member

Hi! Yes, here are the files. I sanitized them a bit added "txt" extension to upload to github: vector.toml.txt vector.yaml.txt

vector.toml works for me (or at least before sanitation), while vector.yaml fails in at least 2 places, described above.

Thanks yeah, I can see that it incorrectly adds a global option. Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: config Anything related to configuring Vector type: bug A code related bug.
Projects
None yet
Development

No branches or pull requests

2 participants