-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
RHDEVDOCS-3258 - Add Log Source #42331
Conversation
✅ Deploy Preview for osdocs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
== Adding log source information to message output | ||
|
||
You can add namespace_name, pod_name, and container_name to the `message` field of the record by adding the `AddLogSource` field to your `ClusterLogForwarder` CR. | ||
|
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.
.Procedure | |
* Add `AddLogSource: true` to your `ClusterLogForwarder` custom resource definition file. | |
+ | |
.Example `ClusterLogForwarder` CR |
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.
@libander this seems like an assembly that should have three modules: 1. A procedure module for 'Configuring log forwarding using the syslog protocol' or something on those lines. 2. A procedure module with Rolfe's suggestion above for this section - 'Adding log source information to message output' (procedure module since it starts with a gerund.) and 3. A reference module for Syslog parameters.
Currenlty, this whole section: Forwarding logs using the syslog protocol is marked as content-type: PROCEDURE, which is misleading.
Considering the parent section, I believe, you might need to use nested assemblies under the assembly for the parent section: https://deploy-preview-42331--osdocs.netlify.app/openshift-enterprise/latest/logging/cluster-logging-external.html
While this may be outside the scope of this PR I suggest you file a follow up enhancement Jira issue for this.
However for this Jira, I suggest you implement this recommendation by @rolfedh
@libander , I have verified this PR using Logging 5.2.
|
@gkarager it seems to have the fields specified, is it the order that's a concern? (would this be potentially variable, depending on CR configuration?) |
a730b6e
to
089eac3
Compare
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.
Couple of small formatting fixes before this is ready to merge.
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.
Still a couple of issues, but pre-approved to expedite merging.
@libander please ask for QE/SME LGTM for this PR to be merged. |
@gkarager PTAL |
/lgtm |
/cherry-pick enterprise-4.8 |
/cherry-pick enterprise-4.9 |
/cherry-pick enterprise-4.10 |
/cherry-pick enterprise-4.11 |
@JStickler: new pull request created: #46834 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 kubernetes/test-infra repository. |
@JStickler: new pull request created: #46835 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 kubernetes/test-infra repository. |
@JStickler: new pull request created: #46836 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 kubernetes/test-infra repository. |
@JStickler: new pull request created: #46837 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 kubernetes/test-infra repository. |
Aligned team: Dev Tools
For branches: main, 4.11, 4.10, 4.9, 4.8
Jira:https://issues.redhat.com/browse/RHDEVDOCS-3258
Direct link to doc preview: https://deploy-preview-42331--osdocs.netlify.app/openshift-enterprise/latest/logging/cluster-logging-external.html#cluster-logging-collector-log-forward-examples-syslog-log-source
SME review: @vimalk78
QE review: @gkarager
Peer review: @rolfedh