Bug 1738850
| Summary: | Logging to journald and rsyslog | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Stephen Wadeley <swadeley> |
| Component: | Documentation | Assignee: | Sergei Petrosian <spetrosi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Vlada Grosu <vgrosu> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.6.0 | CC: | lzap, spetrosi |
| Target Milestone: | Unspecified | Keywords: | Reopened |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-08-23 14:03:47 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Stephen Wadeley
2019-08-08 09:43:12 UTC
FYI Bug 1738784 - foreman-proxy-log JOURNAL option should install foreman-proxy-journald Bug 1623090 - Setting --foreman-logging-level via installer doesn't affect the log level of /var/log/foreman/production.log Hi Stephen, thank you for raising this bug. Hello, you are in shell so you must escape quotes I think:
--foreman-loggers "{\"sql\" => true}"
(In reply to Lukas Zapletal from comment #8) > Hello, you are in shell so you must escape quotes I think: > > --foreman-loggers "{\"sql\" => true}" Hi Lukas, does it work for you? My Satellite throwing the following error: ~~~~ # satellite-installer --foreman-loggers "{\"sql\" => true}" Resetting puppet server version param... Parameter foreman-loggers invalid: Hash value elements are invalid: nil is not a valid boolean Error during configuration, exiting ~~~~ Thank you [root@dell-r330-12 ~]# satellite-installer --foreman-loggers {\"sql\" => true}
ERROR: too many arguments
See: 'satellite-installer --help'
[root@dell-r330-12 ~]# satellite-installer --foreman-loggers "{\"sql\" => true}"
Parameter foreman-loggers invalid: Hash value elements are invalid: nil is not a valid boolean
Error during configuration, exiting
[root@dell-r330-12 ~]#
Hello, I haven't tried but I think it must be JSON, that would be:
# satellite-installer --foreman-loggers "{\"sql\": true}"
Try that, if that's correct then file an installer bug that the help is incorrect.
Hi Lukas,
this does not work either:
# satellite-installer --foreman-loggers "{\"sql\": true}"
Resetting puppet server version param...
Parameter foreman-loggers invalid: Hash value elements are invalid: " true}Error during configuration, exiting
Will open a bug for installer now
I opened BZ#1743165 to fix this. These changes are live on the 6.6-beta branch and ready to be published with 6.6 Beta documentation. As per Ewoud's BZ#1743165 comment#5, the correct satellite-installer command to enable and disable individual loggers is in the form "satellite-installer --foreman-loggers sql:true". I tested this command and it works perfectly. I am reopening this to change the procedure that tells to edit files manually to use commands for better user-experience. |