<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">Still no solution for this...If i manually run</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default" style=""><font color="#0b5394" face="verdana, sans-serif">/usr/bin/varnishncsa -a -w /var/log/varnish/varnishncsa.log -F "%h|%u|%{%Y-%m-%d}t"</font><br></div><div class="gmail_default" style=""><font color="#0b5394" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0b5394" face="verdana, sans-serif">I get the correct log format. However when I put this on /etc/systemd/system/varnishncsa.service, such as:</font></div><div class="gmail_default" style=""><font color="#0b5394" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0b5394" face="verdana, sans-serif"><div class="gmail_default"><br></div><div class="gmail_default">[Unit]</div><div class="gmail_default">Description=Varnish HTTP accelerator log daemon</div><div class="gmail_default">After=varnish.service</div><div class="gmail_default"><br></div><div class="gmail_default">[Service]</div><div class="gmail_default">User=varnishlog</div><div class="gmail_default">ExecStart=/usr/bin/varnishncsa -a -w /var/log/varnish/varnishncsa.log -F "%h|%u|%{%Y-%m-%d}t"</div><div class="gmail_default">ExecReload=/bin/kill -HUP $MAINPID</div><div class="gmail_default"><br></div><div class="gmail_default">[Install]</div><div class="gmail_default">WantedBy=multi-user.target</div><div><br></div><div>I get an error</div><div><br></div><div><div>May 26 14:39:57 CACHE-SRV systemd[1]: Failed to start Varnish HTTP accelerator log daemon.</div><div>-- Subject: Unit varnishncsa.service has failed</div><div>-- Defined-By: systemd</div><div>-- Support: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a></div><div>--</div><div>-- Unit varnishncsa.service has failed.</div><div>--</div><div>-- The result is failed.</div><div>May 26 14:39:57 CACHE-SRV systemd[1]: varnishncsa.service: Failed with result 'resources'.</div><div>May 26 14:39:57 CACHE-SRV polkitd(authority=local)[799]: Unregistered Authentication Agent for unix-process:15422:8414612 (system bus name :1.67, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)</div></div><div><br></div><div><br></div><div>Any help with this is greatly appreciated.</div><div><br></div><div>Albert</div><div><br></div><div><br></div></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 25, 2016 at 6:41 PM, Albert Tollkuçi <span dir="ltr"><<a href="mailto:albert.tollkuci@gmail.com" target="_blank">albert.tollkuci@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">Tried even the solution posted here <a href="https://blog.onetechnical.com/2014/05/02/hacking-up-varnish-logging-on-ubuntu-12-04/" target="_blank">https://blog.onetechnical.com/2014/05/02/hacking-up-varnish-logging-on-ubuntu-12-04/</a> by modifying  /etc/init.d/varnishncsa but still log format stays the same...</div><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 25, 2016 at 5:44 PM, Albert Tollkuçi <span dir="ltr"><<a href="mailto:albert.tollkuci@gmail.com" target="_blank">albert.tollkuci@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">Output from journalctl -xe is:</div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)"><div>May 25 15:33:29 CACHE-SRV systemd[1]: Started Varnish HTTP accelerator log daemon.</div><div>-- Subject: Unit varnishncsa.service has finished start-up</div><div>-- Defined-By: systemd</div><div>-- Support: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a></div><div>--</div><div>-- Unit varnishncsa.service has finished starting up.</div><div>--</div><div>-- The start-up result is done.</div><div>May 25 15:33:29 CACHE-SRV polkitd(authority=local)[799]: Unregistered Authentication Agent for unix-process:2383:95786 (system bus name :1.28, object path /org/freedesktop/</div><div><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Wed, May 25, 2016 at 5:40 PM, Guillaume Quintard <span dir="ltr"><<a href="mailto:guillaume@varnish-software.com" target="_blank">guillaume@varnish-software.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div><div><div dir="ltr"><br></div></div></div>
<br><div class="gmail_quote"><span>On Wed, May 25, 2016 at 5:35 PM, Albert Tollkuçi <span dir="ltr"><<a href="mailto:albert.tollkuci@gmail.com" target="_blank">albert.tollkuci@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div><div><font color="#0b5394" face="verdana, sans-serif">Job for varnishncsa.service failed because a configured resource limit was exceeded. See "systemctl status varnishncsa.service" and "journalctl -xe" for details.</font><br></div><div><br></div></div></div></blockquote><div class="gmail_quote"><br></div></span>Actually, showing us the details would help here, we are in the dark without them.<span><font color="#888888"><br><br clear="all"><div><div><div dir="ltr"><div>-- <br></div></div></div></div><div>Guillaume Quintard </div></font></span></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span>-- <br><div><div dir="ltr"><div><div><span style="font-size:small;color:rgb(61,133,198);font-family:'trebuchet ms',sans-serif">Web: </span><a href="http://www.tollkuci.com/" style="font-size:small;font-family:'trebuchet ms',sans-serif" target="_blank">http://www.tollkuci.com</a><br></div><div><span style="color:rgb(61,133,198);font-family:'trebuchet ms',sans-serif;font-size:small">Follow me on: </span><a href="http://www.linkedin.com/in/alberttollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2flinkedin_icon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">LinkedIn</a> <a href="https://plus.google.com/+AlbertTollku%C3%A7i/posts" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fgoogleplus-icon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">Google+</a> <a href="https://www.facebook.com/albert.tollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fFacebook_Icon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">Facebook</a> <a href="https://twitter.com/AlbertTollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fTwitterIcon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">Twitter</a> <a href="http://careers.stackoverflow.com/atollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fcareers-icon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">Career 2.0</a></div><font style="font-family:'trebuchet ms',sans-serif;color:rgb(102,102,102)"><hr style="color:rgb(34,34,34);font-family:Arial,Verdana,sans-serif;font-size:12px"></font></div><br></div></div>
</span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div><span style="font-size:small;color:rgb(61,133,198);font-family:'trebuchet ms',sans-serif">Web: </span><a href="http://www.tollkuci.com/" style="font-size:small;font-family:'trebuchet ms',sans-serif" target="_blank">http://www.tollkuci.com</a><br></div><div><span style="color:rgb(61,133,198);font-family:'trebuchet ms',sans-serif;font-size:small">Follow me on: </span><a href="http://www.linkedin.com/in/alberttollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2flinkedin_icon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">LinkedIn</a> <a href="https://plus.google.com/+AlbertTollku%C3%A7i/posts" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fgoogleplus-icon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">Google+</a> <a href="https://www.facebook.com/albert.tollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fFacebook_Icon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">Facebook</a> <a href="https://twitter.com/AlbertTollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fTwitterIcon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">Twitter</a> <a href="http://careers.stackoverflow.com/atollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fcareers-icon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">Career 2.0</a></div><font style="font-family:'trebuchet ms',sans-serif;color:rgb(102,102,102)"><hr style="color:rgb(34,34,34);font-family:Arial,Verdana,sans-serif;font-size:12px"></font></div><br></div></div>
</div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><span style="font-size:small;color:rgb(61,133,198);font-family:'trebuchet ms',sans-serif">Web: </span><a href="http://www.tollkuci.com/" style="font-size:small;font-family:'trebuchet ms',sans-serif" target="_blank">http://www.tollkuci.com</a><br></div><div><span style="color:rgb(61,133,198);font-family:'trebuchet ms',sans-serif;font-size:small">Follow me on: </span><a href="http://www.linkedin.com/in/alberttollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2flinkedin_icon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">LinkedIn</a> <a href="https://plus.google.com/+AlbertTollku%C3%A7i/posts" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fgoogleplus-icon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">Google+</a> <a href="https://www.facebook.com/albert.tollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fFacebook_Icon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">Facebook</a> <a href="https://twitter.com/AlbertTollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fTwitterIcon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">Twitter</a> <a href="http://careers.stackoverflow.com/atollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fcareers-icon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">Career 2.0</a></div><font style="font-family:'trebuchet ms',sans-serif;color:rgb(102,102,102)"><hr style="color:rgb(34,34,34);font-family:Arial,Verdana,sans-serif;font-size:12px"><br></font><font style="font-family:'trebuchet ms',sans-serif;color:rgb(102,102,102)"></font></div><font style="font-family:trebuchet ms,sans-serif;color:rgb(102,102,102)" size="2">Imagination is more important than knowledge<br><i>Albert Einstein</i><br><br>The three chief virtues of a programmer are: Laziness, Impatience and Hubris<br><i>Larry Wall</i><br><br>Men are basically smart or dumb and lazy or ambitious. The dumb and ambitious ones are dangerous and I get rid of them. The dumb and lazy ones I give mundane duties. The smart ambitious ones I put on my staff. The smart and lazy ones I make my commanders<br><i>Erwin Rommel</i><br><br></font><div><font style="font-family:trebuchet ms,sans-serif;color:rgb(102,102,102)" size="2"><div>The best programmers are not marginally better than merely good ones.  They are an order-of-magnitude better, measured by whatever standard: conceptual creativity, speed, ingenuity of design, or problem-solving ability.</div><div><i>Randall E. Stross</i></div><div><br></div><div><div>Measuring programming progress by lines of code is like measuring aircraft building progress by weight.</div><div><i>Bill Gates</i></div></div></font></div></div></div>
</div>