looplab / logspout-logstash

A minimalistic adapter for github.com/gliderlabs/logspout to write to Logstash
Apache License 2.0
293 stars 133 forks source link

!! bad adapter #27

Closed qbvysakh closed 7 years ago

qbvysakh commented 8 years ago

My modules.go contains:

package main

import (
  _ "github.com/looplab/logspout-logstash"
  _ "github.com/gliderlabs/logspout/transports/udp"
)

run with docker run --volume=/var/run/docker.sock:/var/run/docker.sock -it vysakh/logspoutudp -e ROUTE_URIS='logstash://localhost:5000'

docker log report

# logspout v3.2-dev-custom by gliderlabs
# adapters: udp logstash raw
# options : persist:/mnt/routes
!! bad adapter:
rchicoli commented 8 years ago

hey @vysakhqb the docker environment variable should come before the image name:

docker run --volume=/var/run/docker.sock:/var/run/docker.sock \
  -it \
  -e ROUTE_URIS='logstash://localhost:5000' \
  vysakh/logspoutudp

PS: when you allocate pseudo-tty (-t option), the logs will be ignored as well

maxekman commented 8 years ago

Can this be considered fixed? If so I'll close the issue.

ricardojoaoreis commented 8 years ago

Just another suggestion:

@vysakhqb instead of using the ROUTE_URISenvironment variable you can also just do it like this: docker run --volume=/var/run/docker.sock:/var/run/docker.sock -it vysakh/logspoutudp logstash://localhost:5000

Afterwards you can check the /routes endpoint to see if everything if the route is properly configured.

maxekman commented 7 years ago

I'll close this due to no activity.