logspout icon indicating copy to clipboard operation
logspout copied to clipboard

added the ability to include only container having label using INCLUDE_LABEL param

Open mohamed-el-habib opened this issue 9 years ago • 7 comments

Added the ability to include only container having label using INCLUDE_LABEL param (Same as EXCLUDE_LABEL). I'm using this feature to use logspout container into docker-compose.yml. add expose log of others services throw http

mohamed-el-habib avatar Aug 10 '16 19:08 mohamed-el-habib

Don't we have this somewhere already?

josegonzalez avatar Aug 10 '16 20:08 josegonzalez

Maybe i missed that, but as i saw there are some things similar when logs are routed, but no things when logs are pumped.

mohamed-el-habib avatar Aug 11 '16 07:08 mohamed-el-habib

@josegonzalez : I simplified the code as i can (i my first time with golang), and updated the README.md.

mohamed-el-habib avatar Aug 11 '16 09:08 mohamed-el-habib

@josegonzalez did my code need documentation ?

mohamed-el-habib avatar Aug 19 '16 15:08 mohamed-el-habib

what's the difference between this vs the filter approach?

itajaja avatar Aug 25 '16 02:08 itajaja

May be, misunderstood the filter approach. My use case is to have a docker-compose file with a list of containers for my application. And I want to add logspout container to this compose file. I want logspout to load only the compose container 's logs and expose them throw http module. How can I do that using filter approach.

mohamed-el-habib avatar Aug 25 '16 17:08 mohamed-el-habib

@mattaitchison @josegonzalez Thoughts on having both INCLUDE & EXCLUDE?

michaelshobbs avatar Mar 28 '17 15:03 michaelshobbs