-
Notifications
You must be signed in to change notification settings - Fork 144
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
LOG-5931: enable stream (stdout/stderr) information in logs for Vector #2736
base: master
Are you sure you want to change the base?
Conversation
@vparfonov: This pull request references LOG-5931 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 spike to target the "4.8.0" version, but no target version was set. In 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: vparfonov The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -28,7 +28,8 @@ resource.attributes = append( resource.attributes, | |||
resource.attributes = append( resource.attributes, | |||
[{"key": "k8s.pod.name", "value": {"stringValue": get!(.,["kubernetes","pod_name"])}}, | |||
{"key": "k8s.container.name", "value": {"stringValue": get!(.,["kubernetes","container_name"])}}, | |||
{"key": "k8s.namespace.name", "value": {"stringValue": get!(.,["kubernetes","namespace_name"])}}] | |||
{"key": "k8s.namespace.name", "value": {"stringValue": get!(.,["kubernetes","namespace_name"])}}, | |||
{"key": "k8s.stream", "value": {"stringValue": get!(.,["kubernetes","stream"])}}] |
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.
For OTLP output, if you are adding to the resource attributes, then it also needs to be included in the group_by
for container logs. https://github.com/openshift/cluster-logging-operator/blob/master/internal/generator/vector/output/otlp/group_by.go#L39
7daadae
to
b8e813b
Compare
/test functional-target |
Signed-off-by: Vitalii Parfonov <[email protected]>
@vparfonov: This pull request references LOG-5931 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 spike to target the "4.8.0" version, but no target version was set. In 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. |
/hold |
@vparfonov: all tests passed! Full PR test history. Your PR dashboard. 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 kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Description
This PR introduces handling of
kubernetes_log
stream
field (e.g., stdout, stderr). https://vector.dev/docs/reference/configuration/sources/kubernetes_logs/#line-fieldsstream
field tokubernetes.stream
to better align with the log event structurekubernetes.stream
to the group_by parameter of the Detect Multiline Exceptions filter, ensures that exception detection is correctly handledkubernetes.stream
in the group_by parameter for the OTLP output, to improves the granularity of log data sent through OTLP by differentiating between different streams./cc @cahartma @Clee2691
/assign @jcantrill
/cherry-pick
Links