Skip to content

Commit

Permalink
feat(backend): 慢查询日志正则解析优化 #6697
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhw8 committed Sep 9, 2024
1 parent 9ef7a4f commit f530adc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbm-ui/backend/dbm_init/json_files/bklog/mysql_slowlog.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"target_nodes": [],
"etl_params": {
"retain_original_text": true,
"separator_regexp": "(?s)#\\s+User@Host:\\s+(?P<user>\\w+)\\[\\w+\\]\\s+@\\s+\\[(?P<client_host>[^\\]]+)\\].*?(Schema:\\s+(?P<db_name>\\w+).*?)?Query_time:\\s+(?P<query_time>\\d+\\.\\d+)\\s+Lock_time:\\s+(?P<lock_time>\\d+\\.\\d+)\\s+Rows_sent:\\s+(?P<rows_sent>\\d+)\\s+Rows_examined:\\s+(?P<rows_examined>\\d+).*?SET timestamp=(?P<sql_timestamp>\\d+);.*?(?P<sql_text>.*;)"
"separator_regexp": "(?s)#\\s+User@Host:\\s+(?P<user>[\\w\\-]+)\\[[\\w\\-]+\\]\\s+@\\s+\\[(?P<client_host>[^\\]]+)\\].*?(Schema:\\s+(?P<db_name>[\\w\\-]+).*?)?Query_time:\\s+(?P<query_time>\\d+\\.\\d+)\\s+Lock_time:\\s+(?P<lock_time>\\d+\\.\\d+)\\s+Rows_sent:\\s+(?P<rows_sent>\\d+)\\s+Rows_examined:\\s+(?P<rows_examined>\\d+).*?SET timestamp=(?P<sql_timestamp>\\d+);.*?(?P<sql_text>.*;)"
},
"fields": [
{
Expand Down Expand Up @@ -166,7 +166,7 @@
"match_content": ""
},
"multiline_pattern": "^# User@Host",
"multiline_max_lines": 50,
"multiline_max_lines": 500,
"multiline_timeout": 2,
"encoding": "UTF-8",
"extra_template_labels": [
Expand Down

0 comments on commit f530adc

Please sign in to comment.