Merge pull request #53376 from ClickHouse/fix-wrong-query-for-log-messages-check

Fix wrong query in log messages check
This commit is contained in:
Alexander Tokmakov 2023-08-14 14:47:44 +03:00 committed by GitHub
commit 8a02b184ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2152,7 +2152,7 @@ def reportLogStats(args):
print("\n")
query = """
SELECT message_format_string, count(), substr(any(message), 1, 120) AS any_message
SELECT message_format_string, count(), any(message) AS any_message
FROM system.text_log
WHERE (now() - toIntervalMinute(240)) < event_time
AND (message NOT LIKE (replaceRegexpAll(message_format_string, '{[:.0-9dfx]*}', '%') AS s))