Skip to content
This repository has been archived by the owner on May 3, 2020. It is now read-only.

stefanprodan/swarm-logspout-logstash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swarm-logspout-logstash

Logspout adapter to send Docker Swarm logs to Logstash

Usage

Stack:

version: "3.3"

  logspout:
    image: stefanprodan/swarm-logspout-logstash
    environment:
      - "ROUTE_URIS=logstash+tcp://localhost:50005"
      - "LOGSPOUT=ignore"
      - "HTTP_PORT=55444"
      - "DOCKER_LABELS=on"
    volumes:
      - /etc/hostname:/etc/host_hostname:ro
      - /var/run/docker.sock:/var/run/docker.sock
    networks:
      - host-net
    deploy:
      mode: global
      restart_policy:
        condition: on-failure
        delay: 10s
        window: 5s
      resources:
        limits:
          cpus: '0.10'
          memory: 256M
        reservations:
          memory: 64M

networks:
  host-net:
    external:
      name: "host"

Logstash pipeline:

input {
  udp {
    port  => 50005
    codec => json
  }
  tcp {
    port  => 50005
    codec => json
  }
}

output {
	elasticsearch {
		hosts => ["es1:9200", "es2:9200", "es3:9200"]
	}
}

About

Logspout adapter to send Docker Swarm logs to Logstash

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published