comotion/VSF

VSF log

iammeken opened this issue · 4 comments

Where to find log file of VSF?

I may need fail2ban to scan it. :)

Thank you!

fgsch commented

Hi. Logs are currently emitted using std.log.
They should appear in the shared memory log and you can use tools such as varnishlog to get them.

Logging takes place in a few places, but the main entry is here (for the 6.0 branch): https://github.com/comotion/VSF/blob/6.0/vcl/handlers.vcl#L29.

Let me know if that answers your question.

Thank you for answering me!

So there is no a thing like varnishncsa.log, for fail2ban to scan and block repeated bad ip addresses?

fgsch commented

You could set up varnishncsa to extract anything from the shared log so it should be possible, but you will need to implement it.

Thank you for the hint, I will study it.