This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-16. For the latest, interactive version please visit https://mariadb.com/kb/.

Location of log files. Containers.

Reference to logs, in maxadmin:

MaxScale> add server server1 MariaDB-Monitor RWSplit-Service
Could not add server 'server1' to object 'MariaDB-Monitor'. See error log for more details.
Could not add server 'server1' to object 'RWSplit-Service'. See error log for more details.

Where are the log files? I am running all in containers.

Answer Answered by Sam in this comment.

Found an answer: execute "flush logs" in maxadmin. Then output is printed in the terminal where the container has been started.

E.g.:

add server server1 MariaDB-Monitor
Output: Could not add server 'server1' to object 'MariaDB-Monitor'. See error log for more details.
flush logs

Output from maxscale container, e.g.:

2018-11-27 12:32:30   error  : (7) Server 'server1' is already monitored.

For some reason, there are no details regarding following command:

add server server1 RWSplit-Service
Output: Could not add server 'server1' to object 'RWSplit-Service'. See error log for more details.
flush logs

In output of the maxscale container, there is only:

2018-11-27 12:35:05   notice : (7) Log rotation is called for stdout.
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.