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

Make vector generate shell friendly #1684

Closed
Hoverbear opened this issue Feb 3, 2020 · 1 comment
Closed

Make vector generate shell friendly #1684

Hoverbear opened this issue Feb 3, 2020 · 1 comment
Assignees
Labels
domain: cli Anything related to Vector's CLI type: enhancement A value-adding code change that enhances its existing functionality.

Comments

@Hoverbear
Copy link
Contributor

We can use vector generate to create template configurations for Vector.

This is quite useful for quickly building out configurations without needing to scour the docs!

Here's some examples:

$ vector generate "|json_parser"
$ vector generate "stdin||http"
$ vector generate "||file,http"

You may notice all of these examples require quotes! This is because | is a "pipe" in a shell, and redirects output.

This command is still experimental, and it's syntax is not stabilized. We can consider adding a new recommended syntax, and deprecate the old format.

Some possibilities:

$ vector generate stdin+json_parser+console
$ vector generate stdin/json_parser/console
$ vector generate --sources stdin --transforms json_parser --sinks console

cc @a-rodin @Jeffail

@Hoverbear Hoverbear changed the title Make Vector generate shell friendly Make Vector generate shell friendly Feb 3, 2020
@Hoverbear Hoverbear added domain: cli Anything related to Vector's CLI needs: approval Needs review & approval before work can begin. needs: requirements Needs a a list of requirements before work can be begin type: enhancement A value-adding code change that enhances its existing functionality. labels Feb 3, 2020
@binarylogic binarylogic changed the title Make Vector generate shell friendly Make vector generate shell friendly Feb 3, 2020
@ghost
Copy link

ghost commented Feb 4, 2020

Ultimately this could have been solved as a side effect of doing #1328 or #1327 in conjunction with something like #1679. So if we had a terse and expressive language to describe the topology, an expression in such a language could also have been used as a command line argument to scaffold the config.

But those are much larger issues, so I don't mean that this proposal should be blocked by them.

@Jeffail Jeffail self-assigned this Feb 11, 2020
@Jeffail Jeffail removed needs: approval Needs review & approval before work can begin. needs: requirements Needs a a list of requirements before work can be begin labels Feb 11, 2020
@Jeffail Jeffail closed this as completed Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: cli Anything related to Vector's CLI type: enhancement A value-adding code change that enhances its existing functionality.
Projects
None yet
Development

No branches or pull requests

3 participants