logspout icon indicating copy to clipboard operation
logspout copied to clipboard

Map hostnames dynamically?

Open switz opened this issue 2 years ago • 0 comments
trafficstars

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?

switz avatar Jan 17 '23 09:01 switz