[rancher-logging 4.10.0-rancher.24] add node info for rke2 rancher-logging chart#255
Open
rmoioliveira wants to merge 2 commits into
Open
[rancher-logging 4.10.0-rancher.24] add node info for rke2 rancher-logging chart#255rmoioliveira wants to merge 2 commits into
rmoioliveira wants to merge 2 commits into
Conversation
Signed-off-by: Rodolfo Mói de Oliveira <rodolfo.oliveira@suse.com>
The rancher-logging default configuration collects and forwards kubelet and journald logs, eliminating the need for additional HostTailers configuration. However, as currently deployed, these logs lack the node or hostname reference, which is inconvenient for users who expect that information to be present. To address this issue, we are including the node information that is currently missing from the rke2 system-level logs. Closes SURE-10735 Signed-off-by: Rodolfo Mói de Oliveira <rodolfo.oliveira@suse.com>
67e9f86 to
1dd9d11
Compare
diogoasouza
approved these changes
Jun 8, 2026
mallardduck
approved these changes
Jun 8, 2026
Contributor
Author
For QA testingTo test the addition of the node information that is currently missing from the rke2 system-level logs, follow the steps below:
apiVersion: catalog.cattle.io/v1
kind: ClusterRepo
metadata:
name: rmoioliveira-sure-10735-2
spec:
gitBranch: sure-10735-2
gitRepo: https://github.com/rmoioliveira/ob-team-charts
---
apiVersion: logging.banzaicloud.io/v1beta1
kind: ClusterFlow
metadata:
name: kubelet-cluster-flow
namespace: cattle-logging-system
spec:
globalOutputRefs:
- kubelet-cluster-output
match:
- select: {}
---
apiVersion: logging.banzaicloud.io/v1beta1
kind: ClusterOutput
metadata:
name: kubelet-cluster-output
namespace: cattle-logging-system
spec:
file:
path: /tmp/logs/${tag}/%Y/%m/%d/%H.%M
buffer:
timekey: 1m
timekey_wait: 10s
timekey_use_utc: true
kubectl -n cattle-logging-system \
exec -it rancher-logging-root-fluentd-0 \
--container fluentd \
-- /bin/sh -c 'find /tmp/logs/ -name "*.log" -type f | xargs cat' | grep -E '\{.+\}' -o |
sed -E 's@^ +@@g' |
jq |
Collaborator
|
Fixes #257 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The rancher-logging default configuration collects and forwards kubelet and journald logs, eliminating the need for additional HostTailers configuration. However, as currently deployed, these logs lack the node or hostname reference, which is inconvenient for users who expect that information to be present. To address this issue, we are including the node information that is currently missing from the rke2 system-level logs.
Closes SURE-10735
Signed-off-by: Rodolfo Mói de Oliveira rodolfo.oliveira@suse.com