Skip to content
Elastic Beat for Varnish Log
Go Dockerfile VCL Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
beater
config
vendor
.gitignore
Dockerfile
Gopkg.lock
Gopkg.toml
LICENSE
README.md
default.vcl
docker-compose.yml
docker-entrypoint.sh
main.go
varnishlogbeat.full.yml
varnishlogbeat.template-es2x.json
varnishlogbeat.template-es6x.json
varnishlogbeat.template.json
varnishlogbeat.yml

README.md

Varnishlogbeat

Varnishlogbeat is an Elastic beat that reads log data from a Varnish Shared Memory file and ships it to Elasticsearch.

Varnishlogbeat uses vago.

For 4.1 refer to branch varnish-4.1

Requirements

You will also need to set PKG_CONFIG_PATH to the directory where varnishapi.pc is located before running go get. For example:

export PKG_CONFIG_PATH=/usr/lib/pkgconfig

Build

go get github.com/phenomenes/varnishlogbeat
cd $GOPATH/src/github.com/phenomenes/varnishlogbeat
go build .

Run

Install and run Elasticsearch.

Run varnishlogbeat with debugging output enabled:

./varnishlogbeat -c varnishlogbeat.yml -e -d "*"

Additionally you can install Kibana to visualize the data.

Run on Docker

docker-compose up --build

The above command will create the following containers:

You can’t perform that action at this time.