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 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 +}