From 1b9c45b54f158e5c410b6e5fe172cd2a22acf894 Mon Sep 17 00:00:00 2001 From: Ken Chen Date: Mon, 10 Oct 2016 19:38:35 +0800 Subject: [PATCH 1/2] Add mongo collection & method into mapping --- mappings/mongo.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mappings/mongo.json b/mappings/mongo.json index 4e2b844..94ed4c6 100644 --- a/mappings/mongo.json +++ b/mappings/mongo.json @@ -12,10 +12,12 @@ "type": "nested", "include_in_parent": true, "properties": { + "collection": {"type": "string", "index": "not_analyzed"}, + "method": {"type": "string", "index": "not_analyzed"}, "query": {"type": "string", "index": "not_analyzed"}, "duration": {"type": "long"} } } } } -} \ No newline at end of file +} From e77f1a85640c4654ebc160d9bf9fa1d3d904eb38 Mon Sep 17 00:00:00 2001 From: Ken Chen Date: Mon, 10 Oct 2016 19:42:00 +0800 Subject: [PATCH 2/2] Update readme: Add mongo collection & method into mapping --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4848ccc..7d1c36d 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,8 @@ Additional data is then included depending on the monitoring event. Value | Description :------------------------|:------------------------------------------- + mongo.collection | The MongoDB collection name query made on + mongo.method | The executed method for the query, such as find, update mongo.query | The query made of the MongoDB database mongo.duration | The time taken for the MongoDB query to be responded to in ms