Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description

Logstash "client" in Docker

Docker container with logstash and redis as output


docker run -d -v logs/nginx:/var/log/nginx -v logs/varnish:/var/log/varnish --add-host="redis:<ip>" <id>
  • ip = is redis ip
  • id = is docker image id

Nginx log

Nginx logs are read from files in /var/log/nginx

log_format directive

log_format combinedwithservername
                '$remote_addr - $remote_user [$time_local] '
                '"$request" $status $body_bytes_sent '
                '"$http_referer" "$http_user_agent" '
                '$server_name "$sent_http_content_type" $request_time';

Varnish log

Varnish logs are read from files in /var/log/varnish

varnishncsa log format option (-F)

see: how to make it works on debian wheezy

"%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\" \"%{Content-type}o\" %D"

Available on:

About me

Docker Pull Command
Source Repository