<div dir="ltr">Gluster default logging can be enabled by creating  `/var/lib/glusterd/logger.conf` and restarting Gluster services. <div><br></div><div>But i would vote for a much better way to handle this in more document friendly manner - since creating a file and restarting is obscure and prone to errors. Avati&#39;s idea is perhaps even more valid syslog should be optional based on logger.conf and a parameter in it saying.</div>
<div><br></div><div>/var/lib/glusterd/logger.conf:</div><div>logging_style = syslog</div><div><br></div><div>or</div><div><br></div><div><div>/var/lib/glusterd/logger.conf:</div></div><div>logging_style = glusterfs</div><div>
<br></div><div>Regards</div><div>--</div><div>Harsha</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 28, 2013 at 9:17 PM, Anand Avati <span dir="ltr">&lt;<a href="mailto:anand.avati@gmail.com" target="_blank">anand.avati@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">We should also address the fact that in master branch, by default, gluster logs go empty -- which is an annoying new default behavior, significantly difference from how glusterfs has behaved for years. The change to the new rsyslog based model must be more gradual (start by providing an option to use rsyslog initially, move some types of logs - those which makes sense to user rather than developer - there by default later, and finally fully make rsyslog by default, by taking user feedback in each step. The current cut over is too drastic, only getting it in json format (which is not as convenient as the old format for an admin to &quot;see&quot;) and a lot of admin tools why rely upon the logs to be in /var/log/glusterfs in the well-known format are now broken.<div>

<br></div><div>Bala - can you please submit a patch to revert just the default behavior (i.e, make rsyslog optional rather than default) first, and propose a plan for how to start moving things over to rsyslog more gradually? Let&#39;s at least have a separate discussion thread around this.</div>

<div><br></div><div>Thanks,</div><div>Avati</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 28, 2013 at 9:09 PM, Vijay Bellur <span dir="ltr">&lt;<a href="mailto:vbellur@redhat.com" target="_blank">vbellur@redhat.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bala,<br>
<br>
After the syslog improvements got merged, the following warning is being seen:<br>
<br>
../../../libglusterfs/src/<u></u>logging.c: In function &#39;gf_syslog&#39;:<br>
../../../libglusterfs/src/<u></u>logging.c:281:21: warning: variable &#39;p&#39; set but not used [-Wunused-but-set-variable]<br>
<br>
Can you please address this?<br>
<br>
Thanks,<br>
Vijay<br>
<br>
______________________________<u></u>_________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@nongnu.org" target="_blank">Gluster-devel@nongnu.org</a><br>
<a href="https://lists.nongnu.org/mailman/listinfo/gluster-devel" target="_blank">https://lists.nongnu.org/<u></u>mailman/listinfo/gluster-devel</a><br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@nongnu.org">Gluster-devel@nongnu.org</a><br>
<a href="https://lists.nongnu.org/mailman/listinfo/gluster-devel" target="_blank">https://lists.nongnu.org/mailman/listinfo/gluster-devel</a><br>
<br></blockquote></div><br></div>