-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
out_azure_logs_ingestion: make the stream_name explicit #8472
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Jed Laundry <[email protected]>
Signed-off-by: Jed Laundry <[email protected]>
Signed-off-by: Jed Laundry <[email protected]>
Example config (you can use the instructions at https://learn.microsoft.com/en-us/azure/sentinel/connect-logstash-data-connection-rules#example-dcr-that-ingests-data-into-the-syslog-table to create an appropriate DCR):
|
Debug log: (sensitive values zeroised) |
Valgrind output:
|
Just checking, was there anything else I need to do? |
@jlaundry @edsiper and @patrick-stephens I originally developed this plugin. Will test it out today and post any change request if necessary. |
@kforeverisback just checking, did you manage to take a look? |
This will be nice. Thanks @jlaundry for your article and work on this. Waiting for this amazing fix |
@edsiper @leonardo-albertovich @fujimotos @koleini just trying to revive this, have I missed a step? |
@jlaundry @dneto82 Sorry for the late reply. I was preoccupied with lots of stuff these past few months.
Also, I was trying to create a custom DCR, that forwards logs to a standard Syslog table with Would you be able to provide me a sample bicep/arm where I can create resources and test out the custom stream name property? |
Hi @kforeverisback,
|
Thanks @jlaundry! EDIT: Rethinking about backward-compatibility: We have a couple of options to maintain backward compatibility, we can:
Let me know what you think of this. |
While the stream name for Custom log table DCRs created through the Azure Portal GUI are predictable (i.e., if the Custom Log table is
Example_CL
, the stream name will beCustom-Example_CL
), this is not always the case.This is purely convention for DCRs created through the Azure Portal GUI, but by using the API or ARM templates, it's possible to create DCRs have completely arbitrary stream names, which is necessary if you're sending data to built-in tables (i.e.,
Syslog
orCommonSecurityLog
), and/or have multiple transformation streams defined in the same DCR.This PR creates the
stream_name
parameter, so that it can be set explicitly.One thing I'm not sure (and would appreciate feedback on) is if
stream_name
should be Optional, and assume the old behavior... while it would be nice for config backwards compatibility, the effect of getting it wrong is that logs ultimately won't end up in the right place, and other applications/SDKs require the stream name to be explicitly set.Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-test
label to test for all targets (requires maintainer to do).Documentation
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.