LOG-7261: Implement AzureLogIngestion output in CLO#3223
LOG-7261: Implement AzureLogIngestion output in CLO#3223Clee2691 wants to merge 1 commit intoopenshift:masterfrom
Conversation
|
/test all |
|
@Clee2691: This pull request references LOG-7261 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.8.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Skipping CI for Draft Pull Request. |
| minRetryDuration: 20s | ||
| ---- | ||
|
|
||
| ==== Field Reference |
There was a problem hiding this comment.
Do we have any concerns this may get out of sync? Should we exclude it in favor of our reference doc?
There was a problem hiding this comment.
What do you mean by reference doc? The API docs?
I think we should keep this as there is some background on the different API's (data collector, logs ingestion). This can be used to expand your below comment.
| // +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Azure Log Ingestion" | ||
| AzureLogsIngestion *AzureLogsIngestion `json:"azureLogsIngestion,omitempty"` | ||
|
|
||
| // DEPRECATED: Use AzureLogsIngestion instead. This output will be removed in a future release. |
There was a problem hiding this comment.
should we further expand that MS is dropping support Sept. 2026?
There was a problem hiding this comment.
I think this is a good general statement and the doc created can shed more light into the change.
I also do think that someone who is forwarding to Azure now will (should) know about the removal of the data collector API as when they go to set it up, there are many warnings about it in their docs
|
|
||
| Auth *AzureLogsIngestionAuth `json:"auth,omitempty" yaml:"auth,omitempty" toml:"auth,omitempty"` | ||
|
|
||
| Acknowledgements *Acknowledgements `json:"acknowledgements,omitempty" yaml:"acknowledgements,omitempty" toml:"acknowledgements,omitempty"` |
There was a problem hiding this comment.
Can these be replaced by "BaseSink"?
There was a problem hiding this comment.
I was looking to see if I could BUT this sink does NOT support compression.
| Batch *Batch `json:"batch,omitempty" yaml:"batch,omitempty" toml:"batch,omitempty"` | ||
| Buffer *Buffer `json:"buffer,omitempty" yaml:"buffer,omitempty" toml:"buffer,omitempty"` | ||
| Request *Request `json:"request,omitempty" yaml:"request,omitempty" toml:"request,omitempty"` | ||
| TLS *transport.TLS `json:"tls,omitempty" yaml:"tls,omitempty" toml:"tls,omitempty"` |
There was a problem hiding this comment.
Do we know if the vector TLS config for azure supports the cipher and other profile change? Is it the same config as the other sinks?
There was a problem hiding this comment.
Yes this is similar to other sinks and is valid.
See:https://vector.dev/docs/reference/configuration/sinks/azure_logs_ingestion/#tls
| vectorhelpers "github.com/openshift/cluster-logging-operator/internal/generator/vector/helpers" | ||
| ) | ||
|
|
||
| type AzureLogsIngestion struct { |
There was a problem hiding this comment.
shouldnt need this at all with the new api changes
| } | ||
|
|
||
| const ( | ||
| AzureCredentialKindWorkloadIdentity = "workload_identity" |
There was a problem hiding this comment.
does this need to be public?
|
/hold |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Clee2691, jcantrill The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@Clee2691: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Description
This PR adds a new
azureLogsIngestionoutput type that sends logs to Azure Monitor via the Logs Ingestion API.The
AzureMonitoroutput is deprecated and will be removed in a future release. Microsoft will retire the Data Collecter API in September 2026.What's new:
AzureLogsIngestionwith requiredDCR immutable ID,stream name, andURL, plus optionaltoken scope,timestampfield, and tuningclientSecret- long lived credentials andworkloadIdentity- short lived tokensendpoint over TLS)
azureLogsIngestion
AzureMonitoroutput/cc @cahartma @vparfonov
/assign @jcantrill
Links