fw42 / logspout-splunk Goto Github PK
View Code? Open in Web Editor NEWSend docker container logs to Splunk
Send docker container logs to Splunk
I set it up following the steps in the readme.
Looks like it is not parsing the input for the route properly?
It adds a route but with only an id.
curl http://127.0.0.1:8020/routes
[]
curl http://127.0.0.1:8020/routes -X POST -d '{ "adapter": "splunk","filter_sources": ["stdout" ,"stderr"],"address":"127.0.0.1:1234"}'
{
"id": "26e166160e0d",
"target": {
"type": "",
"addr": ""
}
}
curl http://127.0.0.1:8020/routes
[
{
"id": "26e166160e0d",
"target": {
"type": "",
"addr": ""
}
}
]
I tried to start a container from the image using the suggested command:
docker run --env DEBUG=1 --name="logspout" \
--volume=/var/run/docker.sock:/tmp/docker.sock \
--publish=0.0.0.0:8002:80 b356b141ddc2
(obviously with the correct image name), but it won't start unless I specify a route in the docker run command, otherwise I just get it stopping immediately with:
# logspout v3.1-dev-custom by gliderlabs
# adapters: splunk
# options : persist:/mnt/routes
# jobs : http[logs,routes]:80 pump
# routes : none
2016/05/02 00:19:57 ended: %!s(<nil>)
I thus start it with a route added to the docker run command of splunk://172.17.0.1:1514 , which works, however it writes vast numbers of "...Wrote " entries to the port. I turned off --env DEBUG=1 but that doesn't seem to help.
Any ideas? (And does starting logspout without a route work for you?)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.