Hi guys,
I'm also trying to connect Varnish to Graylog. Is there a chance you could
share how you managed to do it? I've tried Razvan approach of formatting as
GELF and sending it through netcat but I don't know why the process
terminates when the first requests to Varnish comes in. What I'm running is
the following,
/usr/bin/varnishncsa -a -P /var/run/varnishncsa/varnishncsa.pid -F
"{\"version\": \"1.1\", \"host\": \"server\", \"short_message\": \"Varnish
entry\", \"_request-method\": \"%m\", "url": \"%U\" }" | nc -w 1 -u
localhost 12307
I've also tried going for the go-log2gelf approach but I can't really get
to build it.
Thanks,
Ariel
On Tuesday, December 9, 2014 at 12:17:58 PM UTC+2, Razvan Grigore wrote:
>
> On Tuesday, December 9, 2014 11:05:44 AM UTC+1, Razvan Grigore wrote:
>
>> and if you restart the daemon, it parses again all entries in the log
>> file and sends them once again to graylog.
>>
>
> Ah, scratch that, the daemon had no write rights to save the state file,
> it works great now, but he should complain tho..
>
--
You received this message because you are subscribed to the Google Groups
"graylog2" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.