Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
370 views
in Technique[技术] by (71.8m points)

Docker logs from file Mariadb Slow Queries Log

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").


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...