Open MarkusH opened 5 years ago
Thanks @MarkusH this is great. Regarding your points:
@LucioFranco is working on https://github.com/timberio/vector/issues/354 which addresses your data structure issues. My hope is that this will be a low level change that will be very easy to implement across all sinks.
I'll let @LucioFranco chime in on the best way to handle this.
Once we get these straight, I'd recommend opening a PR for discussion so we can get it merged π
Thank you @binarylogic. I'm looking forward to the changes :smile:
Hey @MarkusH, we just merged #678 which should be what you need. Let me know if that helps, we'd love to review a createdb PR. π
Sweeet :slightly_smiling_face: Thank you @binarylogic I'll put it on my plate the next days.
@MarkusH I totally forgot to answer this a while back, sorry! Your integration actually looks pretty good! I would say if you want to submit a PR for it and I can provide some comments. I don't expect anything major to change as it already looks pretty good! (couldn't even tell you were new to rust π )
CrateDB is a distributed SQL database developed and maintained by @crate. I would like to add a CrateDB sink to Vector.
I have an initial working version that is based on the existing
HttpService
using CrateDB's HTTP endpoint for bulk inserts.Since I'm quite new to working with @rust-lang I would love advice and support on what to change/do better, if the integration is accepted.
There are a few issues that I don't know yet how to solve:
json_parser
transform "flattens" nested structures like thisto
. However, I'd like the the data sent to CrateDB to be
HttpService
. CrateDB provides error codes for bulk inserts that I'd like to use for logging warnings/info messages in Vector.