Skip to content

Commit

Permalink
Use event.original instead of log.original
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano committed Jun 16, 2021
1 parent ab74fb5 commit 9894f3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion filebeat/module/mongodb/log/ingest/pipeline-json.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ processors:
target_field: mongodb.log.context
- rename:
field: message
target_field: log.original
target_field: event.original
- rename:
field: mongodb.log.msg
target_field: message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"event.dataset": "mongodb.log",
"event.kind": "event",
"event.module": "mongodb",
"event.original": "{\"t\":{\"$date\":\"2021-03-22T21:21:20.349+00:00\"},\"s\":\"I\", \"c\":\"STORAGE\", \"id\":4615611, \"ctx\":\"initandlisten\",\"msg\":\"MongoDB starting\",\"attr\":{\"pid\":1,\"port\":27017,\"dbPath\":\"/data/db\",\"architecture\":\"64-bit\",\"host\":\"6150fe65a89c\"}}",
"event.type": [
"info"
],
"fileset.name": "log",
"input.type": "log",
"log.level": "I",
"log.offset": 0,
"log.original": "{\"t\":{\"$date\":\"2021-03-22T21:21:20.349+00:00\"},\"s\":\"I\", \"c\":\"STORAGE\", \"id\":4615611, \"ctx\":\"initandlisten\",\"msg\":\"MongoDB starting\",\"attr\":{\"pid\":1,\"port\":27017,\"dbPath\":\"/data/db\",\"architecture\":\"64-bit\",\"host\":\"6150fe65a89c\"}}",
"message": "MongoDB starting",
"mongodb.log.component": "STORAGE",
"mongodb.log.context": "initandlisten",
Expand All @@ -29,14 +29,14 @@
"event.dataset": "mongodb.log",
"event.kind": "event",
"event.module": "mongodb",
"event.original": "{\"t\":{\"$date\":\"2021-03-22T21:21:20.350+00:00\"},\"s\":\"I\", \"c\":\"CONTROL\", \"id\":23403, \"ctx\":\"initandlisten\",\"msg\":\"Build Info\",\"attr\":{\"buildInfo\":{\"version\":\"4.4.4\",\"gitVersion\":\"8db30a63db1a9d84bdcad0c83369623f708e0397\",\"openSSLVersion\":\"OpenSSL 1.1.1 11 Sep 2018\",\"modules\":[],\"allocator\":\"tcmalloc\",\"environment\":{\"distmod\":\"ubuntu1804\",\"distarch\":\"x86_64\",\"target_arch\":\"x86_64\"}}}}",
"event.type": [
"info"
],
"fileset.name": "log",
"input.type": "log",
"log.level": "I",
"log.offset": 231,
"log.original": "{\"t\":{\"$date\":\"2021-03-22T21:21:20.350+00:00\"},\"s\":\"I\", \"c\":\"CONTROL\", \"id\":23403, \"ctx\":\"initandlisten\",\"msg\":\"Build Info\",\"attr\":{\"buildInfo\":{\"version\":\"4.4.4\",\"gitVersion\":\"8db30a63db1a9d84bdcad0c83369623f708e0397\",\"openSSLVersion\":\"OpenSSL 1.1.1 11 Sep 2018\",\"modules\":[],\"allocator\":\"tcmalloc\",\"environment\":{\"distmod\":\"ubuntu1804\",\"distarch\":\"x86_64\",\"target_arch\":\"x86_64\"}}}}",
"message": "Build Info",
"mongodb.log.component": "CONTROL",
"mongodb.log.context": "initandlisten",
Expand All @@ -51,14 +51,14 @@
"event.dataset": "mongodb.log",
"event.kind": "event",
"event.module": "mongodb",
"event.original": "{\"t\":{\"$date\":\"2021-03-22T21:21:26.240+00:00\"},\"s\":\"I\", \"c\":\"RECOVERY\", \"id\":23987, \"ctx\":\"initandlisten\",\"msg\":\"WiredTiger recoveryTimestamp\",\"attr\":{\"recoveryTimestamp\":{\"$timestamp\":{\"t\":0,\"i\":0}}}}",
"event.type": [
"info"
],
"fileset.name": "log",
"input.type": "log",
"log.level": "I",
"log.offset": 621,
"log.original": "{\"t\":{\"$date\":\"2021-03-22T21:21:26.240+00:00\"},\"s\":\"I\", \"c\":\"RECOVERY\", \"id\":23987, \"ctx\":\"initandlisten\",\"msg\":\"WiredTiger recoveryTimestamp\",\"attr\":{\"recoveryTimestamp\":{\"$timestamp\":{\"t\":0,\"i\":0}}}}",
"message": "WiredTiger recoveryTimestamp",
"mongodb.log.component": "RECOVERY",
"mongodb.log.context": "initandlisten",
Expand All @@ -73,14 +73,14 @@
"event.dataset": "mongodb.log",
"event.kind": "event",
"event.module": "mongodb",
"event.original": "{\"t\":{\"$date\":\"2021-03-22T21:21:26.363+00:00\"},\"s\":\"I\", \"c\":\"STORAGE\", \"id\":20320, \"ctx\":\"initandlisten\",\"msg\":\"createCollection\",\"attr\":{\"namespace\":\"admin.system.version\",\"uuidDisposition\":\"provided\",\"uuid\":{\"uuid\":{\"$uuid\":\"b383f03c-b97c-4584-87ae-ab1b8ea399c3\"}},\"options\":{\"uuid\":{\"$uuid\":\"b383f03c-b97c-4584-87ae-ab1b8ea399c3\"}}}}",
"event.type": [
"info"
],
"fileset.name": "log",
"input.type": "log",
"log.level": "I",
"log.offset": 826,
"log.original": "{\"t\":{\"$date\":\"2021-03-22T21:21:26.363+00:00\"},\"s\":\"I\", \"c\":\"STORAGE\", \"id\":20320, \"ctx\":\"initandlisten\",\"msg\":\"createCollection\",\"attr\":{\"namespace\":\"admin.system.version\",\"uuidDisposition\":\"provided\",\"uuid\":{\"uuid\":{\"$uuid\":\"b383f03c-b97c-4584-87ae-ab1b8ea399c3\"}},\"options\":{\"uuid\":{\"$uuid\":\"b383f03c-b97c-4584-87ae-ab1b8ea399c3\"}}}}",
"message": "createCollection",
"mongodb.log.component": "STORAGE",
"mongodb.log.context": "initandlisten",
Expand All @@ -95,14 +95,14 @@
"event.dataset": "mongodb.log",
"event.kind": "event",
"event.module": "mongodb",
"event.original": "{\"t\":{\"$date\":\"2021-03-22T21:21:26.410+00:00\"},\"s\":\"I\", \"c\":\"INDEX\", \"id\":20345, \"ctx\":\"initandlisten\",\"msg\":\"Index build: done building\",\"attr\":{\"buildUUID\":null,\"namespace\":\"admin.system.version\",\"index\":\"_id_\",\"commitTimestamp\":{\"$timestamp\":{\"t\":0,\"i\":0}}}}",
"event.type": [
"info"
],
"fileset.name": "log",
"input.type": "log",
"log.level": "I",
"log.offset": 1167,
"log.original": "{\"t\":{\"$date\":\"2021-03-22T21:21:26.410+00:00\"},\"s\":\"I\", \"c\":\"INDEX\", \"id\":20345, \"ctx\":\"initandlisten\",\"msg\":\"Index build: done building\",\"attr\":{\"buildUUID\":null,\"namespace\":\"admin.system.version\",\"index\":\"_id_\",\"commitTimestamp\":{\"$timestamp\":{\"t\":0,\"i\":0}}}}",
"message": "Index build: done building",
"mongodb.log.component": "INDEX",
"mongodb.log.context": "initandlisten",
Expand All @@ -117,14 +117,14 @@
"event.dataset": "mongodb.log",
"event.kind": "event",
"event.module": "mongodb",
"event.original": "{\"t\":{\"$date\":\"2021-03-22T21:21:26.412+00:00\"},\"s\":\"I\", \"c\":\"COMMAND\", \"id\":20459, \"ctx\":\"initandlisten\",\"msg\":\"Setting featureCompatibilityVersion\",\"attr\":{\"newVersion\":\"4.4\"}}",
"event.type": [
"info"
],
"fileset.name": "log",
"input.type": "log",
"log.level": "I",
"log.offset": 1435,
"log.original": "{\"t\":{\"$date\":\"2021-03-22T21:21:26.412+00:00\"},\"s\":\"I\", \"c\":\"COMMAND\", \"id\":20459, \"ctx\":\"initandlisten\",\"msg\":\"Setting featureCompatibilityVersion\",\"attr\":{\"newVersion\":\"4.4\"}}",
"message": "Setting featureCompatibilityVersion",
"mongodb.log.component": "COMMAND",
"mongodb.log.context": "initandlisten",
Expand All @@ -139,14 +139,14 @@
"event.dataset": "mongodb.log",
"event.kind": "event",
"event.module": "mongodb",
"event.original": "{\"t\":{\"$date\":\"2021-03-22T21:21:26.451+00:00\"},\"s\":\"I\", \"c\":\"FTDC\", \"id\":20625, \"ctx\":\"initandlisten\",\"msg\":\"Initializing full-time diagnostic data capture\",\"attr\":{\"dataDirectory\":\"/data/db/diagnostic.data\"}}",
"event.type": [
"info"
],
"fileset.name": "log",
"input.type": "log",
"log.level": "I",
"log.offset": 1617,
"log.original": "{\"t\":{\"$date\":\"2021-03-22T21:21:26.451+00:00\"},\"s\":\"I\", \"c\":\"FTDC\", \"id\":20625, \"ctx\":\"initandlisten\",\"msg\":\"Initializing full-time diagnostic data capture\",\"attr\":{\"dataDirectory\":\"/data/db/diagnostic.data\"}}",
"message": "Initializing full-time diagnostic data capture",
"mongodb.log.component": "FTDC",
"mongodb.log.context": "initandlisten",
Expand Down

0 comments on commit 9894f3b

Please sign in to comment.