W3C like format logging

Albert Tollkuçi albert.tollkuci at gmail.com
Thu May 26 16:40:31 CEST 2016


Still no solution for this...If i manually run

/usr/bin/varnishncsa -a -w /var/log/varnish/varnishncsa.log -F
"%h|%u|%{%Y-%m-%d}t"

I get the correct log format. However when I put this
on /etc/systemd/system/varnishncsa.service, such as:


[Unit]
Description=Varnish HTTP accelerator log daemon
After=varnish.service

[Service]
User=varnishlog
ExecStart=/usr/bin/varnishncsa -a -w /var/log/varnish/varnishncsa.log -F
"%h|%u|%{%Y-%m-%d}t"
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target

I get an error

May 26 14:39:57 CACHE-SRV systemd[1]: Failed to start Varnish HTTP
accelerator log daemon.
-- Subject: Unit varnishncsa.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit varnishncsa.service has failed.
--
-- The result is failed.
May 26 14:39:57 CACHE-SRV systemd[1]: varnishncsa.service: Failed with
result 'resources'.
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)


Any help with this is greatly appreciated.

Albert



On Wed, May 25, 2016 at 6:41 PM, Albert Tollkuçi <albert.tollkuci at gmail.com>
wrote:

> Tried even the solution posted here
> https://blog.onetechnical.com/2014/05/02/hacking-up-varnish-logging-on-ubuntu-12-04/
> by modifying  /etc/init.d/varnishncsa but still log format stays the same...
>
> On Wed, May 25, 2016 at 5:44 PM, Albert Tollkuçi <
> albert.tollkuci at gmail.com> wrote:
>
>> Output from journalctl -xe is:
>>
>> May 25 15:33:29 CACHE-SRV systemd[1]: Started Varnish HTTP accelerator
>> log daemon.
>> -- Subject: Unit varnishncsa.service has finished start-up
>> -- Defined-By: systemd
>> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>> --
>> -- Unit varnishncsa.service has finished starting up.
>> --
>> -- The start-up result is done.
>> 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/
>>
>>
>>
>>
>> On Wed, May 25, 2016 at 5:40 PM, Guillaume Quintard <
>> guillaume at varnish-software.com> wrote:
>>
>>>
>>>
>>> On Wed, May 25, 2016 at 5:35 PM, Albert Tollkuçi <
>>> albert.tollkuci at gmail.com> wrote:
>>>
>>>>
>>>> Job for varnishncsa.service failed because a configured resource limit
>>>> was exceeded. See "systemctl status varnishncsa.service" and "journalctl
>>>> -xe" for details.
>>>>
>>>>
>>> Actually, showing us the details would help here, we are in the dark
>>> without them.
>>>
>>> --
>>> Guillaume Quintard
>>>
>>
>>
>>
>> --
>> Web: http://www.tollkuci.com
>> Follow me on: LinkedIn <http://www.linkedin.com/in/alberttollkuci>
>> Google+ <https://plus.google.com/+AlbertTollku%C3%A7i/posts> Facebook
>> <https://www.facebook.com/albert.tollkuci> Twitter
>> <https://twitter.com/AlbertTollkuci> Career 2.0
>> <http://careers.stackoverflow.com/atollkuci>
>> ------------------------------
>>
>>
>
>
> --
> Web: http://www.tollkuci.com
> Follow me on: LinkedIn <http://www.linkedin.com/in/alberttollkuci> Google+
> <https://plus.google.com/+AlbertTollku%C3%A7i/posts> Facebook
> <https://www.facebook.com/albert.tollkuci> Twitter
> <https://twitter.com/AlbertTollkuci> Career 2.0
> <http://careers.stackoverflow.com/atollkuci>
> ------------------------------
>
>


-- 
Web: http://www.tollkuci.com
Follow me on: LinkedIn <http://www.linkedin.com/in/alberttollkuci> Google+
<https://plus.google.com/+AlbertTollku%C3%A7i/posts> Facebook
<https://www.facebook.com/albert.tollkuci> Twitter
<https://twitter.com/AlbertTollkuci> Career 2.0
<http://careers.stackoverflow.com/atollkuci>
------------------------------

Imagination is more important than knowledge
*Albert Einstein*

The three chief virtues of a programmer are: Laziness, Impatience and Hubris
*Larry Wall*

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
*Erwin Rommel*

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.
*Randall E. Stross*

Measuring programming progress by lines of code is like measuring aircraft
building progress by weight.
*Bill Gates*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20160526/8ffb6682/attachment.html>


More information about the varnish-misc mailing list