Hey everyone,
I'm trying to get the _size plugin to work and am kind of stuck here. I installed it on every node in my cluster via a rolling restart. I think added the _size enabled to my mapping template and rolled over the index. Yet when I search on the new index there is no _size field. Any directions would be helpful.
Beginning of Mapping:
{
"x-2018.05.16-1": {
"mappings": {
"doc": {
"_size": {
"enabled": true
},
"properties": {
"@timestamp": {
"type": "date"
},
Query against the index:
{
"_index": "x-2018.05.16-1",
"_type": "doc",
"_id": "rOuhaWMBQY84VxJFIVU_",
"_score": 1,
"_source": {
"prospector": {},
"pid": "10163",
"source": "/var/log/xt/api-gateway.log",
"program": "api-gateway",
"message": "gateway.plugin.httpproxy.transport elapsed=22.060988ms",
"error": "x Go Pipeline",
"tags": [
"Engineering-api-gateway"
],
"hostname": "ip-10-10-41-38",
"@timestamp": "2018-05-16T15:45:16.540Z",
"beat": {
"hostname": "ip-10-10-41-38"
},
"Level": "INFO",
"fields": {
"app_name": "api-gateway",
"class": "x"
}
}
}