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

why the filebase option is not working on /etc/maxscale.cnf

hi, I have a doubt, the option filebase is not working, after i set it on /etcmaxscale.cnf the version fo maxscale is 2.1.i2 my /etc/maxscale.cnf as follow: [myLogFilter] type=filter module=qlafilter filebase=/opt/data/mylog

[Read-Write Service] type=service router=readwritesplit servers=server1 user=maxscale passwd=mypasswod enable_root_user=1 max_slave_connections=100% filters=myLogFilter

but there is nothing on the /opt/data/ dictory

Answer Answered by Markus Mäkelä in this comment.

By default, the file is only created after a client has connected into MaxScale. When the client closes the connection, the file will be closed. Each session will have a unique file name where the value of the filebase is appended with the session ID.

In 2.1, you can use the log_type=unified parameter to log all sessions into one file. This should immediately create the file in the specified directory.

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.