<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-05-09 16:15 GMT+02:00 Bruce Ferrell <span dir="ltr"><<a href="mailto:bferrell@baywinds.org" target="_blank">bferrell@baywinds.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>On 05/09/2015 01:17 AM, Ludovic Gasc wrote:<br>
> Hi,<br>
><br>
> Systemd and Journald is now by default on Debian Jessie and Ubuntu 15.04, as on RHEL/CentOS.<br>
> Journald supports syslog format, nevertheless, at least for us, the structured log system provided with journald helps us to debug the production.<br>
><br>
> 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.<br>
><br>
> For example, with Apache: <a href="http://httpd.apache.org/docs/trunk/mod/mod_journald.html" target="_blank">http://httpd.apache.org/docs/trunk/mod/mod_journald.html</a><br>
><br>
> 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.<br>
><br>
> Moreover, not yet used for us, but you can generate statistics about your source code real usage based<br>
> on: <a href="http://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html#CODE_FILE=" target="_blank">http://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html#CODE_FILE=</a><br>
><br>
> For Asterisk, for example with dialplan logging, you should attach the context, the extension and the channel.<br>
><br>
> 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<br>
> classical grep usage.<br>
</span>> ave no idea if i<br>
<span>> 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.<br>
><br>
> 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.<br>
><br>
> Regards<br>
</span><span>> --<br>
> Ludovic Gasc (GMLudo)<br>
> <a href="http://www.gmludo.eu/" target="_blank">http://www.gmludo.eu/</a><br>
><br>
><br>
</span>systemd and journald SUCK to high heaven.</blockquote><div><br></div><div>I've no problems to believe you, nevertheless, could you be more precise ?</div><div>What are the facts that you arrive to this conclusion ?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">  I have no idea if the issues I've had with them (OpenSUSE) are distro related or inherent.<br></blockquote><div><br></div><div>It's issues on your production with several servers ? Or on your laptop ?</div><div>Could give us links with unresolved bugs you have ?</div><div>For now, to my experience, with 6 VMs on Debian Jessie on production with small clients and Asterisk 13, I've no issues with systemd nor journald.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I have seen that the implementation of apache with a static systemd/journald module will no longer correctly serve content.<br></blockquote><div><br></div><div>Could you give me a link about that ?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Please do NOT do this.</blockquote><div><br></div><div>Why ? If it works for me, what's the problem for you ?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">  It also breaks fail2ban site security.  </blockquote><div><br></div><div>I don't understand the issue here, I see at least two solutions:</div><div>1. You can continue to use rsyslog even if you have journald, BTW, it's the default setup of Debian Jessie, where journald forwards everything to rsyslog to avoid to perturb sysadmins with log files.</div><div>2. Apparently, fail2ban supports journald: <a href="https://github.com/fail2ban/fail2ban/pull/82">https://github.com/fail2ban/fail2ban/pull/82</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Asterisk works well now.  It integrates easily.<br></blockquote><div><br></div><div>For this point, I'm agree with you, it's very important to continue to be integrated easily, I use that a lot.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span><font color="#888888"><br>
<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</font></span></blockquote></div><br></div></div>