-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[Merged by Bors] - feat(new sink): Initial azure_monitor_logs
sink
#2811
[Merged by Bors] - feat(new sink): Initial azure_monitor_logs
sink
#2811
Conversation
Right now I assume by default that events have There seems to be an issue when a single event is batched in a JSON array. Azure seems to ignore the timestamp field, maybe because I don't drop milliseconds (although it works fine when there are two or more events) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really good, thanks @nazar554!
Is there some local version of this service that we could add to our integration tests?
We'll also want to add docs, but that can happen in a followup PR.
By default, events get a timestamp field with an actual
That is odd. I didn't see anything that should behave differently with an array of one event. |
I don't know one, you need to have a Azure Log Analytics service in order to obtain
I think it's the behavior of the Azure Log Analytics. Official documentation suggests a
I think I can add docs as well, I'll try to use some existing sink as a reference |
@nazar554 Just thought I'd bump this and see if you have got a moment to re-visit. Thanks! 🥇 |
@jamtur01 Was a bit busy but I think I can get back to this sometime next week |
Signed-off-by: Nazar Mishturak <nazarmx@gmail.com>
…ay, adjust headers Signed-off-by: Nazar Mishturak <nazarmx@gmail.com>
Signed-off-by: Nazar Mishturak <nazarmx@gmail.com>
…amp precision Signed-off-by: Nazar Mishturak <nazarmx@gmail.com>
Signed-off-by: Nazar Mishturak <nazarmx@gmail.com>
Signed-off-by: Nazar Mishturak <nazarmx@gmail.com>
Signed-off-by: Nazar Mishturak <nazarmx@gmail.com>
@jamtur01 I am not sure how to build & test the docs, should I clone and build |
@nazar554 I am not 100% sure how to test off a branch - @binarylogic? |
Signed-off-by: Nazar Mishturak <nazarmx@gmail.com>
Anything else I need to do here? Should I also update |
@nazar554 That file gets updated automatically from the config definitions in Once @binarylogic is able to help out with testing the docs I'll make another pass and see if there are any remaining blockers. Thanks again for opening this! Excited to get it merged. |
@nazar554 the docs look good. As long as |
@binarylogic it looks like something is up with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor issue.
|
||
<%= render( | ||
"_partials/fields/_tls_connector_options.toml", | ||
namespace: "sinks.azure_monitor_logs.options", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs:
enabled_default: false,
With the appropriate true
or false
value. That'll fix the failing Lint suite test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good to me! If we can get CI green then I think we're ready to merge.
Thanks for your patience with this @nazar554, and apologies for it lingering so long. We really appreciate the contribution!
Signed-off-by: Nazar Mishturak <nazarmx@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like some test failures in the CI run.
Signed-off-by: Nazar Mishturak <nazarmx@gmail.com>
Signed-off-by: Nazar Mishturak <nazarmx@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@nazar554 I just merged |
bors merge |
Solves #1808 Will add validations for configuration and unit tests Co-authored-by: Luke Steensen <luke.steensen@gmail.com> Co-authored-by: James Turnbull <james@lovedthanlost.net>
Pull request successfully merged into master. Build succeeded: |
azure_monitor_logs
sinkazure_monitor_logs
sink
Solves vectordotdev#1808 Will add validations for configuration and unit tests Co-authored-by: Luke Steensen <luke.steensen@gmail.com> Co-authored-by: James Turnbull <james@lovedthanlost.net> Signed-off-by: Brian Menges <brian.menges@anaplan.com>
Solves #1808
Will add validations for configuration and unit tests