<div dir="ltr">Hi,<div><br></div><div>Systemd and Journald is now by default on Debian Jessie and Ubuntu 15.04, as on RHEL/CentOS.</div><div>Journald supports syslog format, nevertheless, at least for us, the structured log system provided with journald helps us to debug the production.</div><div><br></div><div>The idea behind that is to attach metadata with a log line to facilitate the search with journalctl, you can write queries to find the errors.</div><div><br></div><div>For example, with Apache: <a href="http://httpd.apache.org/docs/trunk/mod/mod_journald.html">http://httpd.apache.org/docs/trunk/mod/mod_journald.html</a></div><div><br></div><div>For our Python daemons, for each log line, we store account_id, request_id, endpoint and method used to be easy to retrieve quickly interesting logs.</div><div><br></div><div>Moreover, not yet used for us, but you can generate statistics about your source code real usage based on: <a href="http://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html#CODE_FILE=">http://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html#CODE_FILE=</a><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><br></div><div>For Asterisk, for example with dialplan logging, you should attach the context, the extension and the channel.</div><div><br></div><div>You can simulate this journald feature with a specific format message for your logs, nevertheless, journalctl is more user-friendly to retrieve pertinent logs compare to the classical grep usage.</div><div><br></div><div>I'm permitted to raise the question about an eventual journald support in Asterisk because I don't find anything about that in issues tracker nor mailing list.</div><div><br></div><div>Moreover, I understand that even if you add the journald support, it's certainly necessary to change logging everywhere in Asterisk, however, I should help to do that.</div><div><br></div><div>Regards.</div><div>--<br><div style="font-size:small"><div>Ludovic Gasc (GMLudo)</div></div><div style="font-size:small"><a href="http://www.gmludo.eu/" target="_blank">http://www.gmludo.eu/</a></div></div></div></div></div>
</div></div>