gliderlabs / logspout

Log routing for Docker container logs
MIT License
4.66k stars 680 forks source link

Map hostnames dynamically? #517

Open switz opened 1 year ago

switz commented 1 year ago

Is there any way to map the hostnames of containers dynamically?

I have a bunch of containers called things like:

hello-world----worker1.fidk2md92mz
hello-world----otherworker.md9sdfm2

and I'd love to replace those hostnames in my logs as just worker1 or worker1.fidk (first four characters after period)

Is that possible via logspout?