Skip to content

Instantly share code, notes, and snippets.

@cmcornejocrespo
Created February 21, 2019 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmcornejocrespo/f42949bfcff6e97dff0fd7ce1cd6b233 to your computer and use it in GitHub Desktop.
Save cmcornejocrespo/f42949bfcff6e97dff0fd7ce1cd6b233 to your computer and use it in GitHub Desktop.
pets kibana-6c445576b6-sq49h kibana [illegal_argument_exception] Fielddata is disabled on text fields by default. Set fielddata=true on [context.service.name] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead. :: {"path":"/apm-*%2Capm-*/_search","query":{"rest_total_hits_as_int":true},"body":"{\"size\":0,\"query\":{\"bool\":{\"filter\":[{\"bool\":{\"should\":[{\"term\":{\"processor.event\":\"transaction\"}},{\"term\":{\"processor.event\":\"error\"}}]}},{\"range\":{\"@timestamp\":{\"gte\":1550672743116,\"lte\":1550759143116,\"format\":\"epoch_millis\"}}}]}},\"aggs\":{\"services\":{\"terms\":{\"field\":\"context.service.name\",\"size\":500},\"aggs\":{\"avg\":{\"avg\":{\"field\":\"transaction.duration.us\"}},\"agents\":{\"terms\":{\"field\":\"context.service.agent.name\",\"size\":1}},\"events\":{\"terms\":{\"field\":\"processor.event\",\"size\":2}}}}}}","statusCode":400,"response":"{\"error\":{\"root_cause\":[{\"type\":\"illegal_argument_exception\",\"reason\":\"Fielddata is disabled on text fields by default. Set fielddata=true on [context.service.name] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.\"}],\"type\":\"search_phase_execution_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed_shards\":[{\"shard\":0,\"index\":\"apm-server-6.6.0-2019.02.21\",\"node\":\"MTZc1qjlT3u6q-Jdbl1uqw\",\"reason\":{\"type\":\"illegal_argument_exception\",\"reason\":\"Fielddata is disabled on text fields by default. Set fielddata=true on [context.service.name] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.\"}}],\"caused_by\":{\"type\":\"illegal_argument_exception\",\"reason\":\"Fielddata is disabled on text fields by default. Set fielddata=true on [context.service.name] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.\",\"caused_by\":{\"type\":\"illegal_argument_exception\",\"reason\":\"Fielddata is disabled on text fields by default. Set fielddata=true on [context.service.name] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.\"}}},\"status\":400}"}
pets kibana-6c445576b6-sq49h kibana at respond (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:308:15)
pets kibana-6c445576b6-sq49h kibana at checkRespForFailure (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:267:7)
pets kibana-6c445576b6-sq49h kibana at HttpConnector.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:165:7)
pets kibana-6c445576b6-sq49h kibana at IncomingMessage.wrapper (/usr/share/kibana/node_modules/elasticsearch/node_modules/lodash/lodash.js:4935:19)
pets kibana-6c445576b6-sq49h kibana at IncomingMessage.emit (events.js:187:15)
pets kibana-6c445576b6-sq49h kibana at endReadableNT (_stream_readable.js:1094:12)
pets kibana-6c445576b6-sq49h kibana at process._tickCallback (internal/process/next_tick.js:63:19)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment