HUB
Sign inSign up
logstash logo

petitchevalroux/logstash

By petitchevalroux

•Updated about 11 years ago

Image
0

534

petitchevalroux/logstash repository overview

⁠Logstash "client" in Docker

Docker container with logstash and redis as output

⁠Run

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

http://petitchevalroux.net⁠

Tag summary
Recent tags
Content type
Image
Digest
sha256:473f4a8eb…
Size
203.1 MB
Last updated
about 11 years ago
docker pull petitchevalroux/logstash:latest