-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add agent.{id,ephemeral_id} to all beat events (#9404)
* Add agent.{id,ephemeral_id} to all beat events This adds the ECS fields `agent.id` and `agent.ephemeral_id` to all beats. * Bring back whitespace * Use CHANGELOG.next * Update fb tests
- Loading branch information
Showing
26 changed files
with
122 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
128 changes: 64 additions & 64 deletions
128
filebeat/module/mysql/slowlog/test/mysql-5.7.22.log-expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,83 @@ | ||
[ | ||
{ | ||
"@timestamp": "2018-08-07T08:27:47.000Z", | ||
"ecs.version": "1.0.0-beta2", | ||
"event.dataset": "slowlog", | ||
"event.module": "mysql", | ||
"input.type": "log", | ||
"@timestamp": "2018-08-07T08:27:47.000Z", | ||
"ecs.version": "1.0.0-beta2", | ||
"event.dataset": "slowlog", | ||
"event.module": "mysql", | ||
"input.type": "log", | ||
"log.flags": [ | ||
"multiline" | ||
], | ||
"log.offset": 41, | ||
"mysql.slowlog.id": "7234", | ||
"mysql.slowlog.ip": "218.76.8.37", | ||
"mysql.slowlog.lock_time.sec": "0.000000", | ||
"mysql.slowlog.query": "select sleep(15);", | ||
"mysql.slowlog.query_time.sec": "15.000223", | ||
"mysql.slowlog.rows_examined": "0", | ||
"mysql.slowlog.rows_sent": "1", | ||
"mysql.slowlog.timestamp": "1533630467", | ||
], | ||
"log.offset": 41, | ||
"mysql.slowlog.id": "7234", | ||
"mysql.slowlog.ip": "218.76.8.37", | ||
"mysql.slowlog.lock_time.sec": "0.000000", | ||
"mysql.slowlog.query": "select sleep(15);", | ||
"mysql.slowlog.query_time.sec": "15.000223", | ||
"mysql.slowlog.rows_examined": "0", | ||
"mysql.slowlog.rows_sent": "1", | ||
"mysql.slowlog.timestamp": "1533630467", | ||
"mysql.slowlog.user": "root" | ||
}, | ||
}, | ||
{ | ||
"@timestamp": "2018-08-07T08:27:47.000Z", | ||
"ecs.version": "1.0.0-beta2", | ||
"event.dataset": "slowlog", | ||
"event.module": "mysql", | ||
"input.type": "log", | ||
"@timestamp": "2018-08-07T08:27:47.000Z", | ||
"ecs.version": "1.0.0-beta2", | ||
"event.dataset": "slowlog", | ||
"event.module": "mysql", | ||
"input.type": "log", | ||
"log.flags": [ | ||
"multiline" | ||
], | ||
"log.offset": 254, | ||
"mysql.slowlog.host": "localhost", | ||
"mysql.slowlog.lock_time.sec": "0.000061", | ||
"mysql.slowlog.query": "SELECT count(*) FROM mysql.user WHERE user='root' and password='';", | ||
"mysql.slowlog.query_time.sec": "0.000153", | ||
"mysql.slowlog.rows_examined": "5", | ||
"mysql.slowlog.rows_sent": "1", | ||
"mysql.slowlog.timestamp": "1533630467", | ||
], | ||
"log.offset": 254, | ||
"mysql.slowlog.host": "localhost", | ||
"mysql.slowlog.lock_time.sec": "0.000061", | ||
"mysql.slowlog.query": "SELECT count(*) FROM mysql.user WHERE user='root' and password='';", | ||
"mysql.slowlog.query_time.sec": "0.000153", | ||
"mysql.slowlog.rows_examined": "5", | ||
"mysql.slowlog.rows_sent": "1", | ||
"mysql.slowlog.timestamp": "1533630467", | ||
"mysql.slowlog.user": "debian-sys-maint" | ||
}, | ||
}, | ||
{ | ||
"@timestamp": "2018-08-07T08:27:47.000Z", | ||
"ecs.version": "1.0.0-beta2", | ||
"event.dataset": "slowlog", | ||
"event.module": "mysql", | ||
"input.type": "log", | ||
"@timestamp": "2018-08-07T08:27:47.000Z", | ||
"ecs.version": "1.0.0-beta2", | ||
"event.dataset": "slowlog", | ||
"event.module": "mysql", | ||
"input.type": "log", | ||
"log.flags": [ | ||
"multiline" | ||
], | ||
"log.offset": 526, | ||
"mysql.slowlog.host": "apphost", | ||
"mysql.slowlog.id": "10997316", | ||
"mysql.slowlog.ip": "1.1.1.1", | ||
"mysql.slowlog.lock_time.sec": "0.000212", | ||
"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;", | ||
"mysql.slowlog.query_time.sec": "4.071491", | ||
"mysql.slowlog.rows_examined": "1489615", | ||
"mysql.slowlog.rows_sent": "1000", | ||
"mysql.slowlog.timestamp": "1533630467", | ||
], | ||
"log.offset": 526, | ||
"mysql.slowlog.host": "apphost", | ||
"mysql.slowlog.id": "10997316", | ||
"mysql.slowlog.ip": "1.1.1.1", | ||
"mysql.slowlog.lock_time.sec": "0.000212", | ||
"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;", | ||
"mysql.slowlog.query_time.sec": "4.071491", | ||
"mysql.slowlog.rows_examined": "1489615", | ||
"mysql.slowlog.rows_sent": "1000", | ||
"mysql.slowlog.timestamp": "1533630467", | ||
"mysql.slowlog.user": "apphost" | ||
}, | ||
}, | ||
{ | ||
"@timestamp": "2018-08-07T08:27:47.000Z", | ||
"ecs.version": "1.0.0-beta2", | ||
"event.dataset": "slowlog", | ||
"event.module": "mysql", | ||
"input.type": "log", | ||
"@timestamp": "2018-08-07T08:27:47.000Z", | ||
"ecs.version": "1.0.0-beta2", | ||
"event.dataset": "slowlog", | ||
"event.module": "mysql", | ||
"input.type": "log", | ||
"log.flags": [ | ||
"multiline" | ||
], | ||
"log.offset": 1438, | ||
"mysql.slowlog.host": "apphost", | ||
"mysql.slowlog.id": "10999834", | ||
"mysql.slowlog.ip": "1.1.1.1", | ||
"mysql.slowlog.lock_time.sec": "0.000036", | ||
"mysql.slowlog.query": "call load_stats(1, '2017-04-28 00:00:00');", | ||
"mysql.slowlog.query_time.sec": "10.346539", | ||
"mysql.slowlog.rows_examined": "4751313", | ||
"mysql.slowlog.rows_sent": "0", | ||
"mysql.slowlog.timestamp": "1533630467", | ||
], | ||
"log.offset": 1438, | ||
"mysql.slowlog.host": "apphost", | ||
"mysql.slowlog.id": "10999834", | ||
"mysql.slowlog.ip": "1.1.1.1", | ||
"mysql.slowlog.lock_time.sec": "0.000036", | ||
"mysql.slowlog.query": "call load_stats(1, '2017-04-28 00:00:00');", | ||
"mysql.slowlog.query_time.sec": "10.346539", | ||
"mysql.slowlog.rows_examined": "4751313", | ||
"mysql.slowlog.rows_sent": "0", | ||
"mysql.slowlog.timestamp": "1533630467", | ||
"mysql.slowlog.user": "apphost" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.