Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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,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
----
Comment thread
Lennonka marked this conversation as resolved.
====

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"
----
Comment thread
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`.
Comment thread
Lennonka marked this conversation as resolved.
Outdated
Comment thread
Lennonka marked this conversation as resolved.
Outdated