gliderlabs / logspout

Log routing for Docker container logs
MIT License
4.65k stars 681 forks source link

JSON log format with metadata #138

Closed ghost closed 7 years ago

ghost commented 8 years ago

It would be extremely useful to be able to tell logstash to send out it's logs in JSON with the docker hostname/image name/container name:tag/labels attached. If I'm running say 30 docker hosts with Mesos this would let me track down issues and plays very nicely with the json filter in Logstash.

diranged commented 8 years ago

+1 .. our entire structure log infrastructure is JSON based. JSON logs would make all of our logs structured automatically and vastly easier to parse!

mahnunchik commented 8 years ago

+1

dheeraju commented 8 years ago

+1

keis commented 8 years ago

https://github.com/looplab/logspout-logstash does this

on my fork of the above I also have some extra hacks to attach the taskId as set by marathon etc

progrium commented 8 years ago

Yeah I'm pretty sure there are a couple JSON based adapters...

On Fri, Jan 22, 2016 at 8:11 AM, David Keijser notifications@github.com wrote:

https://github.com/looplab/logspout-logstash does this

on my fork of the above I also have some extra hacks to attach the taskId as set my marathon etc

— Reply to this email directly or view it on GitHub https://github.com/gliderlabs/logspout/issues/138#issuecomment-173930699 .

Jeff Lindsay http://progrium.com

michaelshobbs commented 8 years ago

To clarify, is the goal here to send json formatted logs to syslog and destinations other than logstash?

michaelshobbs commented 7 years ago

Changing this to documentation. I'll add an ADAPTERS.md file similar to dokku's community plugin doc

michaelshobbs commented 7 years ago

This already exists here

closing