You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix mysql slowlog template to support mysql 5.7.22 (#9647)
* Never default to a qualifier when none of them are set. (#9148)
Remove default version qualifier and rename the environment variable to set it from `BEAT_VERSION_QUALIFIER` to `VERSION_QUALIFIER` this will align with other parts of the stack.
**Tested with filebeat.**
```
❯ ./filebeat version [08:39:01]
filebeat version 7.0.0 (amd64), libbeat 7.0.0 [0a0c267 built 2018-11-19 13:38:15 +0000 UTC]
```
**Without the patch**
```
❯ ./filebeat version [08:40:07]
filebeat version 7.0.0-alpha1 (amd64), libbeat 7.0.0-alpha1 [b007837 built 2018-11-19 13:39:59 +0000 UTC]
```
Fixes: #8384
* Fix mysql slowlog template to support mysql 5.7.22
* Add changelog
* Remove changes introduced from rebasing that are not related to this change
* Add more log entries to test log file
* Add OR in multiline.pattern to remove # Time from mysql.slowlog.query
* Use CHANGELOG.next.asciidoc instead
"mysql.slowlog.query": "SELECT count(*) FROM mysql.user WHERE user='root' and password='';",
35
+
"mysql.slowlog.query_time.sec": "0.000153",
36
+
"mysql.slowlog.rows_examined": "5",
37
+
"mysql.slowlog.rows_sent": "1",
38
+
"mysql.slowlog.timestamp": "1533630467",
39
+
"mysql.slowlog.user": "debian-sys-maint"
40
+
},
41
+
{
42
+
"@timestamp": "2018-08-07T08:27:47.000Z",
43
+
"ecs.version": "1.0.0-beta2",
44
+
"event.dataset": "slowlog",
45
+
"event.module": "mysql",
46
+
"input.type": "log",
47
+
"log.flags": [
48
+
"multiline"
49
+
],
50
+
"log.offset": 526,
51
+
"mysql.slowlog.host": "apphost",
52
+
"mysql.slowlog.id": "10997316",
53
+
"mysql.slowlog.ip": "1.1.1.1",
54
+
"mysql.slowlog.lock_time.sec": "0.000212",
55
+
"mysql.slowlog.query": "SELECT mcu.mcu_guid, mcu.cus_guid, mcu.mcu_url, mcu.mcu_crawlelements, mcu.mcu_order, GROUP_CONCAT(mca.mca_guid SEPARATOR \";\") as mca_guid\n FROM kat_mailcustomerurl mcu, kat_customer cus, kat_mailcampaign mca\n WHERE cus.cus_guid = mcu.cus_guid\n AND cus.pro_code = 'CYB'\n AND cus.cus_offline = 0\n AND mca.cus_guid = cus.cus_guid\n AND (mcu.mcu_date IS NULL OR mcu.mcu_date < CURDATE())\n AND mcu.mcu_crawlelements IS NOT NULL\n GROUP BY mcu.mcu_guid\n ORDER BY mcu.mcu_order ASC\n LIMIT 1000;",
0 commit comments