Hi Ken,<div id="yMail_cursorElementTracker_1613533188411"><br></div><div id="yMail_cursorElementTracker_1613533188631">I'm using a lot of 'journalctl -x' , especially when something fails and I really like the idea of having that.</div><div id="yMail_cursorElementTracker_1613533232739">Yet, this will require some efforts and also a modification in the cluster's log saying something like '<span style="font-family: sans-serif;">The cluster is mis-configured - shutting<br></span><span style="font-family: sans-serif;" id="yMail_cursorElementTracker_1613533310723">down and staying down. For more details use </span> journalctl -xe'.</div><div id="yMail_cursorElementTracker_1613533329882"><br></div><div id="yMail_cursorElementTracker_1613533330083">Isn't it easier to just provide more details in the logs than integrating that feature ?</div><div id="yMail_cursorElementTracker_1613533372224"><br></div><div id="yMail_cursorElementTracker_1613533372423"><br></div><div id="yMail_cursorElementTracker_1613533372638">Best Regards,</div><div id="yMail_cursorElementTracker_1613533376594">Strahil Nikolov</div><div id="yMail_cursorElementTracker_1613533217797"> <br> <blockquote style="margin: 0 0 20px 0;"> <div style="font-family:Roboto, sans-serif; color:#6D00F6;"> <div>On Tue, Feb 16, 2021 at 21:48, Ken Gaillot</div><div><kgaillot@redhat.com> wrote:</div> </div> <div style="padding: 10px 0 0 20px; margin: 10px 0 0 0; border-left: 1px solid #6D00F6;"> <div dir="ltr">Hi all,<br></div><div dir="ltr"><br></div><div dir="ltr">The systemd journal has a feature called the message catalog, which<br></div><div dir="ltr">allows "journalctl -x" to show extended troubleshooting hints along<br></div><div dir="ltr">with log messages. Apparently a similar feature is familiar to many<br></div><div dir="ltr">Windows administrators.<br></div><div dir="ltr"><br></div><div dir="ltr">So far, I've only found systemd itself that uses the feature. As an<br></div><div dir="ltr">example, if the usual log message is a one-liner about httpd dumping<br></div><div dir="ltr">core, with journalctl -x it would look like:<br></div><div dir="ltr"><br></div><div dir="ltr"> -- fc2e22bc6ee647b6b90729ab34a250b1<br></div><div dir="ltr"> Subject: Process 1234 (httpd) dumped core<br></div><div dir="ltr"> Defined-By: systemd<br></div><div dir="ltr"> Support: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br></div><div dir="ltr"> Documentation: man:core(5)<br></div><div dir="ltr"> Documentation: <a href="http://www.freedesktop.org/wiki/Software/systemd/catalog/fc2e22bc6ee647b6b90729ab34a250b1" target="_blank">http://www.freedesktop.org/wiki/Software/systemd/catalog/fc2e22bc6ee647b6b90729ab34a250b1</a><br></div><div dir="ltr"><br></div><div dir="ltr"> Process 1234 (httpd) crashed and dumped core.<br></div><div dir="ltr"><br></div><div dir="ltr"> This usually indicates a programming error in the crashing program and<br></div><div dir="ltr"> should be reported to its vendor as a bug.<br></div><div dir="ltr"><br></div><div dir="ltr">There is currently a proposed pull request ( <br></div><div dir="ltr"><a href="https://github.com/ClusterLabs/libqb/pull/433 " target="_blank">https://github.com/ClusterLabs/libqb/pull/433 </a>) to add support for this<br></div><div dir="ltr">to libqb's logging API, which the rest of the cluster software could<br></div><div dir="ltr">use.<br></div><div dir="ltr"><br></div><div dir="ltr">As an example, if someone forcibly uploads a CIB with syntax errors,<br></div><div dir="ltr" id="yMail_cursorElementTracker_1613533295712">Pacemaker will currently log "The cluster is mis-configured - shutting<br></div><div dir="ltr" id="yMail_cursorElementTracker_1613533300143">down and staying down" and exit. We could make it so that the<br></div><div dir="ltr">journalctl -x entry tells the user how to use crm_verify to figure out<br></div><div dir="ltr">what's wrong, how to use cibadmin to correct any errors, and a link to<br></div><div dir="ltr">Pacemaker Explained as a configuration reference.<br></div><div dir="ltr"><br></div><div dir="ltr">This would involve considerable work for developers, so I'm curious how<br></div><div dir="ltr">many users would find this useful and would use it. Especially if most<br></div><div dir="ltr">of the time you used journalctl -x, there was no extended information,<br></div><div dir="ltr">but occasionally there was.<br></div><div dir="ltr">-- <br></div><div dir="ltr">Ken Gaillot <<a ymailto="mailto:kgaillot@redhat.com" href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>><br></div><div dir="ltr"><br></div><div dir="ltr">_______________________________________________<br></div><div dir="ltr">Manage your subscription:<br></div><div dir="ltr"><a href="https://lists.clusterlabs.org/mailman/listinfo/users" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/users</a><br></div><div dir="ltr"><br></div><div dir="ltr">ClusterLabs home: <a href="https://www.clusterlabs.org/" target="_blank">https://www.clusterlabs.org/</a><br></div> </div> </blockquote></div>