-
Notifications
You must be signed in to change notification settings - Fork 111
Increasing log level for IoP #4633
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5219d79
Add Increasing log level for Insights IoP
Lennonka 4fdf596
Add default
Lennonka cb29349
Update with specifics
Lennonka 00db915
Fix example block
Lennonka 8b66cbc
Fine tune
Lennonka 5a66fba
fixup! Fine tune
Lennonka c333e6f
Drop unnecessary sentence
Lennonka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
57 changes: 57 additions & 0 deletions
57
guides/common/modules/proc_increasing-the-logging-level-for-insights-iop.adoc
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| :_mod-docs-content-type: PROCEDURE | ||
|
|
||
| [id="increasing-the-logging-level-for-{insights-iop-id}"] | ||
| = Increasing the logging level for {insights-iop} | ||
|
|
||
| [role="_abstract"] | ||
| You can increase the logging levels for {insights-iop} to `DEBUG` to get more detailed logs. | ||
| You can find the logs in `/var/log/messages`. | ||
|
|
||
| .Log entries of {insights-iop} | ||
| ==== | ||
| ---- | ||
| // TODO: Examples with default log levels | ||
| ---- | ||
| ==== | ||
|
|
||
| The default logging levels for {insights-iop} are as follows: | ||
| ---- | ||
| logging: | ||
| version: 1 | ||
| disable_existing_loggers: false | ||
| loggers: | ||
| insights.core.dr: | ||
| level: "ERROR" | ||
| insights_messaging: | ||
| level: "INFO" | ||
| insights_kafka_service: | ||
| level: "INFO" | ||
| "": | ||
| level: "INFO" | ||
| ---- | ||
|
Lennonka marked this conversation as resolved.
|
||
|
|
||
| .Prerequisites | ||
| * You have installed {insights-iop} on your {ProjectServer}. | ||
| For more information, see {InstallingServerDisconnectedDocURL}installing-and-configuring-{insights-iop-id}[Installing and configuring {insights-iop}] in _{InstallingServerDisconnectedDocTitle}_. | ||
|
|
||
| .Procedure | ||
| * Increase the logging levels to `DEBUG`: | ||
| + | ||
| [options="nowrap", subs="+quotes,verbatim,attributes"] | ||
| ---- | ||
| # {foreman-installer} -l info \ | ||
| --iop-core-engine-log-level-insights-core-dr DEBUG \ | ||
| --iop-core-engine-log-level-insights-kafka-service DEBUG \ | ||
| --iop-core-engine-log-level-insights-messaging DEBUG \ | ||
| --iop-core-engine-log-level-root DEBUG | ||
| ---- | ||
|
|
||
| .Verification | ||
| * Check the logging levels of {insights-iop}: | ||
| + | ||
| [options="nowrap", subs="+quotes,verbatim,attributes"] | ||
| ---- | ||
| # podman exec iop-core-engine cat /var/config.yml | grep -A15 "logging:" | ||
| ---- | ||
| + | ||
| The logging levels are set to `DEBUG`. | ||
|
Lennonka marked this conversation as resolved.
Outdated
Lennonka marked this conversation as resolved.
Outdated
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.