Comments (10)
I'll be interested in this feature as well as, but be able to choose between tcp/upd
will be a better idea than change logstast.go
file, like on a config file or from the modules.go
file like:
import (
_ "github.com/gliderlabs/logspout/transports/tcp"
_ "github.com/looplab/logspout-logstash/transports/tcp"
)
or
import (
_ "github.com/gliderlabs/logspout/transports/udp"
_ "github.com/looplab/logspout-logstash/transports/udp"
)
from logspout-logstash.
+1
from logspout-logstash.
This should be solved with this PR
#29
from logspout-logstash.
Actually it doesn't need a change. You can just use logstash+tcp://...
instead of logstash://...
and it should work.
For it to work your logspout modules.go
also has to include:
import (
_ "github.com/gliderlabs/logspout/transports/tcp"
)
from logspout-logstash.
hey @sfriedel, it didn't work for me like you said and to be honest, it doesn't make sense either to start a transport with udp and type tcp in the protocol.
root@9b5c57baa541:/# netstat -putan
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp6 0 0 :::5003 :::* LISTEN -
$ docker run --rm --volume=/var/run/docker.sock:/var/run/docker.sock -e ROUTE_URIS=logstash+tcp://172.17.0.3:5003 test:1.0
# logspout v3.1-custom by gliderlabs
# adapters: raw tcp udp logstash
# options : persist:/mnt/routes
# jobs : pump routes http[]:80
# routes :
# ADAPTER ADDRESS CONTAINERS SOURCES OPTIONS
# logstash+tcp172.17.0.3:5003 map[]
As soon as you try to send some log information, the connection breaks:
2016/08/09 20:12:39 logstash:write tcp 172.17.0.5:44234->172.17.0.3:5003: write: broken pipe
from logspout-logstash.
hey @rchicoli, i don't know exactly why it doesn't work for you that way. I'm currently using it with logstash+tls://
without problems but during testing i was using logstash+tcp://
. Did you change your logstash configuration to enable the tcp input?
to be honest, it doesn't make sense either to start a transport with udp and type tcp in the protocol.
I'm not sure i understand completely. If you mean the udp
that's passed to route.AdapterTransport
then that is the default transport that logspout will use if the url scheme doesn't specify one (so logstash://
is actually logstash+udp://
internally).
from logspout-logstash.
ok @sfriedel thx for the reply.
No idea why it didn't work for me.
Oh well, I will give another try then.
from logspout-logstash.
hey @sfriedel , I tried again, somehow I got it working, like you said so.. maybe there was some old cache image on my pc, after deleting everything and rebuilding I can confirm, it does work!
from logspout-logstash.
this can be closed, thx to @sfriedel
I've updated the README.
from logspout-logstash.
Thanks for sorting this out, fixed in #29.
from logspout-logstash.
Related Issues (20)
- Error building: ERROR: the correct import path is gopkg.in/check.v1 HOT 2
- Question: What's the value-add of this adaptor? HOT 2
- don't see logstash.go HOT 2
- write: connection refused HOT 1
- No logging if ELK stack is not fully up HOT 10
- High CPU Usage on dockerd HOT 7
- logstash: could not write:write tcp HOT 2
- Logging `null` causes container to crash
- Preserve JSON Number formating HOT 1
- Is there a way collecting multiline logs as a single event to logstash? HOT 3
- Add option to disable decoding json logs HOT 1
- logspout-logstash with 6.0.0 fails with a mapper parsing exception HOT 1
- Versionning HOT 1
- quotes in fields using LOGSTASH_FIELDS environment variable
- TLS & Client Certs HOT 3
- Not possible to build the custom version
- what's the format of DOCKER_LABELS? HOT 1
- Add option to only pull logs from certain containers
- Severity tag missing HOT 1
- Docker labels causes 400 error in logstash
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logspout-logstash.