[msgformats] a couple more tweaks to the query

This commit is contained in:
Tim Stack 2024-01-10 09:47:27 -08:00
parent e354fd778e
commit e0a599b8d3
2 changed files with 4 additions and 3 deletions

View File

@ -190,9 +190,10 @@ SELECT count(*) AS total,
group_concat(DISTINCT log_format) AS log_formats,
log_msg_format
FROM all_logs
WHERE log_msg_format != ''
GROUP BY log_msg_format
HAVING total > 1
ORDER BY total, log_line DESC
ORDER BY total DESC, log_line ASC
)";
std::string retval;

View File

@ -1,4 +1,4 @@
total log_line  log_time duration log_formats  log_msg_format 
 2  2 2007-04-28 06:53:55.000   syslog_log  Registering new address record for # on # 
 2  0 2007-04-28 06:53:55.000   syslog_log  New relevant interface # for # 
 2  1 2007-04-28 06:53:55.000   syslog_log  Joining # multicast group on interface # with address #
 2  0 2007-04-28 06:53:55.000   syslog_log  New relevant interface # for #  
 2  2 2007-04-28 06:53:55.000   syslog_log  Registering new address record for # on #