Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ include::modules/con_increasing-logging-levels-of-project-components.adoc[]

include::modules/proc_increasing-the-logging-level-for-foreman.adoc[leveloffset=+1]

ifdef::satellite[]
include::modules/proc_increasing-the-logging-level-for-insights-iop.adoc[leveloffset=+1]
endif::[]

include::modules/proc_increasing-the-logging-level-for-hammer.adoc[leveloffset=+1]

include::modules/proc_increasing-the-logging-level-for-smart-proxy.adoc[leveloffset=+1]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
:_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}
====
[options="nowrap", subs="+quotes,attributes,verbatim"]
----
Feb 3 10:39:54 {foreman-example-com} iop-core-engine[213708]: INFO:insights.core.dr:Trying telemetry.rules.plugins.sap.sap_hana_loose_sudo.check_group_members
Feb 3 10:39:54 {foreman-example-com} iop-core-engine[213708]: INFO:insights.core.dr:Trying telemetry.rules.plugins.sap.sap_hana_loose_sudo.report
Feb 3 10:39:54 {foreman-example-com} iop-core-engine[213708]: INFO:insights.core.dr:Trying telemetry.rules.plugins.ros.ros_instance_evaluation.find_solution
Feb 3 10:39:54 {foreman-example-com} iop-core-engine[213708]: INFO:insights.core.dr:Trying telemetry.rules.plugins.ros.ros_instance_evaluation.report
Feb 3 10:39:54 {foreman-example-com} iop-core-engine[213708]: INFO:insights_kafka_service.consumer:Completed processing request id 4be0099772a23aad477e493990247876
Feb 3 10:39:54 {foreman-example-com} iop-core-engine[213708]: INFO:insights_messaging.consumers.kafka:Completed one payload
----
====

The default logging levels for {insights-iop} are as follows:
----
loggers:
insights.core.dr:
level: "ERROR"
insights_messaging:
level: "INFO"
insights_kafka_service:
level: "INFO"
"":
level: "INFO"
----

.Prerequisites
* You have installed {insights-iop} on your {ProjectServer}.
For more information, see the following resources:
** {InstallingServerDocURL}installing-and-configuring-{insights-iop-id}[Installing and configuring {insights-iop}] in _{InstallingServerDocTitle}_
** {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} \
--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:"
----
Loading