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
New exec
sink
#935
Comments
@lukesteensen do you mind reviewing this and determining if this is valid or something we should do? I don't have enough context to say. Thanks. |
Thanks for this idea @mamcx! It's definitely an interesting one. My main hesitance is around the management of the long-running subprocess. There are a lot of cases to handle there and we'd probably be better off leaving that to a dedicated process manager like systemd or supervisord. As an alternative, you could use the We haven't specifically tested the Let me know what you think. Thanks again! |
I was not thinking about long running commands, just one-shoot (alike cgi). Probably more robust? I think that a long running command is more probably a web server or similar or an interactive one. |
Gotcha, yes I think that would be simpler and something we could consider. It's unlikely to be a high priority for our own development efforts, but I'd be happy to review a PR that added such a feature. At a high level, the design would roughly be to use our prebuilt batching components combined with a |
Temporary workaround for me: [transforms.sentry]
type = "lua"
inputs = ["some-source"]
source = """
command_template = 'SENTRY_DSN=%s sentry-cli send-event --no-environ -m "%s"'
SENTRY_DSN = "https://*****@sentry.io/123"
message = event["message']
command = string.format(command_template, SENTRY_DSN, message)
os.execute(command)
""" |
Just noting this would be similar to fluentd's exec output: https://docs.fluentd.org/output/exec |
I like to use vector to process logs to http://timescale.com. But because it not have that as sink, I was looking into implementing a http collector for that.
However, considering that vector can be used to aggregate multiple vector agents, how about a "universal" sink? So I could do:
This way, it could cover much more cases where the sink is not available and build a small cli utility is the more easy way to get running...
The text was updated successfully, but these errors were encountered: