Finding MariaDB Log Location

First, enter the MariaDB CLI,

mysql -u root -p

Next, to find out your current log file path, use the following SQL query,

show global variables like 'log_error';

The output should look something like this:

Variable_name Value
log_error /var/log/mysqld.log

As seen in the above output, your file log will be located at /var/log/mysqld.log