I'm trying to make "MariaDB" container to log "Slow Queries". It works fine when MariaDB writes the log into a file. I have just to set a volume for that file and mount the volume to Filebeat.
But is there a way to make Docker log these entries into STDOUT or retrieve the logs from file? To not mount the volume into both MariaDB and Filebeat.
I tried to make a symlink to "/proc/self/fd/1" and run container with TTY, but MariaDB still can't use the symlink with error (Errcode: 29 "Illegal seek").
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…