We are using Elasticsearch, Logstash and Kibana version 7.16.3. Previously we were using version 7.10.x, and we used to have a minimum set of data in fields
. However, after upgrading to the latest version, it is flattening the json data in _source
and adding it to fields
. The data is ingested to Elasticsearch using logstash and Node.js rest apis. Our _source
json is pretty huge (containing array of arrays and array of objects) and because of this new feature, our kibana load times for json data has significantly increased. Is there any way to disable this new feature (if it cannot be disabled in Elasticsearch then atleast in kibana).
Example of how the data used to look before and after the ELK update. Note: I am posting a sample of how the data looks (not actual data). The schema of actual data includes multiple array of arrays and array of objects and each of those arrays usually have a lot of data.
ELK 7.10.x data sample:
{
"_index": "example-index",
"_type": "logs",
"_id": "7b86b5e2e847b86b5e2e846b5e284",
"_version": 6,
"_score": 1,
"_source": {
"locations": {
"coordinates": [
[
0,
10
],
[
10,
20
]
],
"type": "linestring"
},
"Id": "7b86b5e2e847b86b5e2e846b5e284",
"@timestamp": "2022-02-02T00:38:41.423Z",
"object": {
"bbox": {
"topleftx": 10,
"bottomrighty": 300,
"bottomrightx": 20,
"toplefty": 200
}
}
},
"fields": {
"@timestamp": [
"2022-02-02T00:38:41.423Z"
]
},
"sort": [
1643769673658
]
}
ELK 7.16.3 data sample:
{
"_index": "example-index",
"_type": "logs",
"_id": "7b86b5e2e847b86b5e2e846b5e284",
"_version": 6,
"_score": 1,
"_source": {
"locations": {
"coordinates": [
[
0,
10
],
[
10,
20
]
],
"type": "linestring"
},
"Id": "7b86b5e2e847b86b5e2e846b5e284",
"@timestamp": "2022-02-02T00:38:41.423Z",
"object": {
"bbox": {
"topleftx": 10,
"bottomrighty": 300,
"bottomrightx": 20,
"toplefty": 200
}
}
},
"fields": {
"locations.coordinates": [
0,
10,
10,
20
],
"Id.keyword": [
"7b86b5e2e847b86b5e2e846b5e284"
],
"Id": [
"f2c2c45b656679825f7b86b5e2e847669edf37af"
],
"locations.type.keyword": [
"linestring"
],
"locations.type": [
"linestring"
],
"@timestamp": [
"2022-02-02T00:38:41.423Z"
],
"object.bbox.toplefty": [
200
],
"object.bbox.topleftx": [
10
],
"object.bbox.bottomrighty": [
300
],
"object.bbox.bottomrightx": [
20
]
}
}