I would like to send all my service logs to Graylog, but don't want to repeat my logging config.
How can I send in my service name to this YAML merge block?
version: "3"
x-common: &common
restart: always
logging:
driver: "gelf"
options:
gelf-address: "udp://localhost:12201"
tag: "<service_name>"
services:
test:
image: debian:wheezy
command: /bin/sh -c "while true; do date && echo "hello"; sleep 1; done"
<<: *common