Skip to content

vrelk/docker-filebeat-nginx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Filebeat for NginxProxyManager

How to use?

Run Filebeat

In nginx logs directory

docker run --rm -v `echo $( pwd )`:/var/log/nginx/ -e LOGSTASH_HOST='172.17.0.1' vrelk/filebeat-nginxpm:latest

or set full path

docker run --rm -v /var/log/nginx:/var/log/nginx/ -e LOGSTASH_HOST='172.17.0.1' vrelk/filebeat-nginxpm:latest

Environment

ENV Default
LOGSTASH_HOST logstash
LOGSTASH_PORT 5044
INDEX_NAME nginx
ENCODING utf-8

Docker Compose

version: '3.3'

services:

    filebeat_nginx:
        image: filebeat-nginx:latest
        volumes:
          - /var/log/nginx:/var/log/nginx/
        environment:
          LOGSTASH_HOST: "172.17.0.1"
          LOGSTASH_PORT: "5044"
          INDEX_NAME: "nginx"
          ENCODING: "utf-8"

About

Filebeat default configuration for Nginx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%