On Wed, Mar 01, 2023 at 05:58:57PM +0100, Aurelien Bompard wrote:
I'd like to setup log forwarding on our production cluster to log all application level logs to log01.
+1 to that, it would be very useful to the folks developing apps as well, as we all know that no bug ever shows up when we deploy something to production.
ok. This is now done.
You can find logs on log01.iad2.fedoraproject.org in /var/log/merged/messages.log (for the current day) or /var/log/hosts/worker*.ocp.fedoraproject.org/YYYY/MM/DD
Logs look like:
Mar 1 19:39:43 worker01.ocp.stg.iad2.fedoraproject.org fluentd: namespace_name=bodhi, container_name=bodhi-web, pod_name=bodhi-web-80-zr4ph, message=2023-03-01 19:39:42,722 DEBUG [MARKDOWN][ThreadPoolExecutor-0_0] Successfully loaded extension "markdown.extensions.fenced_code.FencedCodeExtension".
So you can search for the namespace, container, or specific pod.
Happy log viewing.
kevin