-
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.
Browse files
Browse the repository at this point in the history
…#17763) * Handle ECS-compatible server logs emitted by ES 8.0.0+ (#17714) * Handle ECS-compatible server logs emitted by ES 8.0.0+ * Adding CHANGELOG entry * Adding a couple more log entries * Fixing CHANGELOG after rebase
- Loading branch information
1 parent
4abd25a
commit cc001bb
Showing
5 changed files
with
120 additions
and
5 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
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
3 changes: 3 additions & 0 deletions
3
filebeat/module/elasticsearch/server/test/elasticsearch-json.800.log
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{"@timestamp":"2020-04-14T14:05:58.019Z", "log.level": "INFO", "message":"adding template [.management-beats] for index patterns [.management-beats]", "service.name":"ES_ECS","process.thread.name":"elasticsearch[CBR-MBP.local][masterService#updateTask][T#1]","log.logger":"org.elasticsearch.cluster.metadata.MetaDataIndexTemplateService","type":"server","cluster.uuid":"ECEBF2VPQuCF9tbBKaLqXQ","node.id":"suOYiQwuRvialOY-c0wHLA","node.name":"CBR-MBP.local","cluster.name":"elasticsearch"} | ||
{"@timestamp":"2020-04-14T20:57:49.663Z", "log.level": "INFO", "message":"[test-filebeat-modules] creating index, cause [auto(bulk api)], templates [test-filebeat-modules], shards [1]/[1], mappings [_doc]", "service.name":"ES_ECS","process.thread.name":"elasticsearch[7debcb878699][masterService#updateTask][T#1]","log.logger":"org.elasticsearch.cluster.metadata.MetadataCreateIndexService","type":"server","cluster.uuid":"QxYAE76DTAWkgk9CwIRedQ","node.id":"kZnYdakGTqihZQT_1rM92g","node.name":"7debcb878699","cluster.name":"docker-cluster"} | ||
{"@timestamp":"2020-04-14T20:57:49.772Z", "log.level": "INFO", "message":"[test-filebeat-modules/IW1jJcOBTFeIDihqjoT8yQ] update_mapping [_doc]", "service.name":"ES_ECS","process.thread.name":"elasticsearch[7debcb878699][masterService#updateTask][T#1]","log.logger":"org.elasticsearch.cluster.metadata.MetadataMappingService","type":"server","cluster.uuid":"QxYAE76DTAWkgk9CwIRedQ","node.id":"kZnYdakGTqihZQT_1rM92g","node.name":"7debcb878699","cluster.name":"docker-cluster"} |
71 changes: 71 additions & 0 deletions
71
filebeat/module/elasticsearch/server/test/elasticsearch-json.800.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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
[ | ||
{ | ||
"@timestamp": "2020-04-14T14:05:58.019Z", | ||
"elasticsearch.cluster.name": "elasticsearch", | ||
"elasticsearch.cluster.uuid": "ECEBF2VPQuCF9tbBKaLqXQ", | ||
"elasticsearch.node.id": "suOYiQwuRvialOY-c0wHLA", | ||
"elasticsearch.node.name": "CBR-MBP.local", | ||
"event.category": "database", | ||
"event.dataset": "elasticsearch.server", | ||
"event.kind": "event", | ||
"event.module": "elasticsearch", | ||
"event.type": "info", | ||
"fileset.name": "server", | ||
"host.id": "suOYiQwuRvialOY-c0wHLA", | ||
"input.type": "log", | ||
"log.level": "INFO", | ||
"log.logger": "org.elasticsearch.cluster.metadata.MetaDataIndexTemplateService", | ||
"log.offset": 0, | ||
"message": "adding template [.management-beats] for index patterns [.management-beats]", | ||
"process.thread.name": "elasticsearch[CBR-MBP.local][masterService#updateTask][T#1]", | ||
"service.name": "ES_ECS", | ||
"service.type": "elasticsearch" | ||
}, | ||
{ | ||
"@timestamp": "2020-04-14T20:57:49.663Z", | ||
"elasticsearch.cluster.name": "docker-cluster", | ||
"elasticsearch.cluster.uuid": "QxYAE76DTAWkgk9CwIRedQ", | ||
"elasticsearch.index.name": "test-filebeat-modules", | ||
"elasticsearch.node.id": "kZnYdakGTqihZQT_1rM92g", | ||
"elasticsearch.node.name": "7debcb878699", | ||
"event.category": "database", | ||
"event.dataset": "elasticsearch.server", | ||
"event.kind": "event", | ||
"event.module": "elasticsearch", | ||
"event.type": "info", | ||
"fileset.name": "server", | ||
"host.id": "kZnYdakGTqihZQT_1rM92g", | ||
"input.type": "log", | ||
"log.level": "INFO", | ||
"log.logger": "org.elasticsearch.cluster.metadata.MetadataCreateIndexService", | ||
"log.offset": 489, | ||
"message": "creating index, cause [auto(bulk api)], templates [test-filebeat-modules], shards [1]/[1], mappings [_doc]", | ||
"process.thread.name": "elasticsearch[7debcb878699][masterService#updateTask][T#1]", | ||
"service.name": "ES_ECS", | ||
"service.type": "elasticsearch" | ||
}, | ||
{ | ||
"@timestamp": "2020-04-14T20:57:49.772Z", | ||
"elasticsearch.cluster.name": "docker-cluster", | ||
"elasticsearch.cluster.uuid": "QxYAE76DTAWkgk9CwIRedQ", | ||
"elasticsearch.index.id": "IW1jJcOBTFeIDihqjoT8yQ", | ||
"elasticsearch.index.name": "test-filebeat-modules", | ||
"elasticsearch.node.id": "kZnYdakGTqihZQT_1rM92g", | ||
"elasticsearch.node.name": "7debcb878699", | ||
"event.category": "database", | ||
"event.dataset": "elasticsearch.server", | ||
"event.kind": "event", | ||
"event.module": "elasticsearch", | ||
"event.type": "info", | ||
"fileset.name": "server", | ||
"host.id": "kZnYdakGTqihZQT_1rM92g", | ||
"input.type": "log", | ||
"log.level": "INFO", | ||
"log.logger": "org.elasticsearch.cluster.metadata.MetadataMappingService", | ||
"log.offset": 1031, | ||
"message": "update_mapping [_doc]", | ||
"process.thread.name": "elasticsearch[7debcb878699][masterService#updateTask][T#1]", | ||
"service.name": "ES_ECS", | ||
"service.type": "elasticsearch" | ||
} | ||
] |