Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Filebeat] Add support to new MongoDB additional diagnostic information #11952

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Configurable line terminator. {pull}11015[11015]
- Add Filebeat envoyproxy module. {pull}11700[11700]
- Add apache2(httpd) log path (`/var/log/httpd`) to make apache2 module work out of the box on Redhat-family OSes. {issue}11887[11887] {pull}11888[11888]
- Add support to new MongoDB additional diagnostic information {pull}11952[11952]

*Heartbeat*

Expand Down
2 changes: 1 addition & 1 deletion filebeat/module/mongodb/log/ingest/pipeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"grok": {
"field": "message",
"patterns":[
"%{TIMESTAMP_ISO8601:mongodb.log.timestamp} %{WORD:log.level} %{WORD:mongodb.log.component} \\s*\\[%{WORD:mongodb.log.context}\\] %{GREEDYDATA:message}"
"%{TIMESTAMP_ISO8601:mongodb.log.timestamp}%{SPACE}%{MONGO3_SEVERITY:log.level}%{SPACE}%{MONGO3_COMPONENT:mongodb.log.component}%{SPACE}(?:\\[%{DATA:mongodb.log.context}\\])?%{SPACE}%{GREEDYDATA:message}"
],
"ignore_missing": true
}
Expand Down
1 change: 1 addition & 0 deletions filebeat/module/mongodb/log/test/mongodb-debian-3.2.11.log
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@
2018-02-05T14:49:45.605+0100 I CONTROL [signalProcessingThread] got signal 15 (Terminated), will terminate after current cmd ends
2018-02-05T14:49:45.605+0100 I FTDC [signalProcessingThread] Shutting down full-time diagnostic data capture
2018-02-05T14:49:45.606+0100 I NETWORK [signalProcessingThread] closing listening socket: 6
2019-03-07T15:10:26.960+0000 I ASIO [NetworkInterfaceASIO-Replication-0] Successfully connected to dbbox7:27017, took 10ms (1 connections now open to dbbox7:27017)
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
"input.type": "log",
"log.level": "I",
"log.offset": 1947,
"message": " distarch: x86_64",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm glad this is fixed 👍

"message": "distarch: x86_64",
"mongodb.log.component": "CONTROL",
"mongodb.log.context": "initandlisten",
"service.type": "mongodb"
Expand Down Expand Up @@ -386,7 +386,7 @@
"input.type": "log",
"log.level": "I",
"log.offset": 3199,
"message": " target_arch: x86_64",
"message": "target_arch: x86_64",
"mongodb.log.component": "CONTROL",
"mongodb.log.context": "initandlisten",
"service.type": "mongodb"
Expand Down Expand Up @@ -474,5 +474,19 @@
"mongodb.log.component": "NETWORK",
"mongodb.log.context": "signalProcessingThread",
"service.type": "mongodb"
},
{
"@timestamp": "2019-03-07T15:10:26.960Z",
"ecs.version": "1.0.0",
"event.dataset": "mongodb.log",
"event.module": "mongodb",
"fileset.name": "log",
"input.type": "log",
"log.level": "I",
"log.offset": 3968,
"message": "Successfully connected to dbbox7:27017, took 10ms (1 connections now open to dbbox7:27017)",
"mongodb.log.component": "ASIO",
"mongodb.log.context": "NetworkInterfaceASIO-Replication-0",
"service.type": "mongodb"
}
]