[msgformats] a couple more tweaks to the query

pull/1235/head
Tim Stack 5 months ago
parent e354fd778e
commit e0a599b8d3

@ -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;

@ -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 #  

Loading…
Cancel
Save