MariaDB [commonswiki_p]> select substr( log_timestamp, 1, 8 ), log_action, log_user_text, count(*) from logging_logindex where log_type = 'gwtoolset' and log_timestamp > '20150900000000' group by substr( log_timestamp, 1, 8 ), log_action, log_user_text order by 2, 1;