Elasticsearch, Logstash and Kibana are running.
kibana-4.3.1
elasticsearch-2.1.1
But failed to sort on any field from Kabana UI, for example, sort on field “severity”, got exception in elastic search.log.
I read the whole thread https://github.com/elastic/elasticsearch/issues/15267, it said it is not a bug, it is by design,that kibana does not allow to sort on analyzed fields. But I still do not get idea how to fix my Kabana sorting issue?
We should use severity.raw, which does exist in index pattern page, we can use severity.raw to create visualization, no problem. But severity.raw does not appear on Discover left panel, only severity. If I change the configuration of Available Fields with Analyzed=no, severity.raw is not in the list.
[2018-02-26 17:06:27,748][DEBUG][action.search.type ] [ACP10] All shards failed for phase: [query]
RemoteTransportException[[ACP10][10.10.44.43:9300][indices:data/read/search[phase/query]]]; nested: SearchParseException[failed to parse search source [{"highlight":{"pre_tags":["@kibana-highlighted-field@"],"post_tags":["@/kibana-highlighted-field@"],"fields":{"":{}},"require_field_match":false,"fragment_size":2147483647},"query":{"filtered":{"query":{"query_string":{"query":"type:AcpLog","analyze_wildcard":true}},"filter":{"bool":{"must":[{"query":{"query_string":{"query":"","analyze_wildcard":true}}},{"range":{"@timestamp":{"gte":1361916387285,"lte":1519682787285,"format":"epoch_millis"}}}],"must_not":[]}}}},"size":500,"sort":[{"severity":{"order":"asc","unmapped_type":"boolean"}}],"fields":["","_source"],"script_fields":{},"fielddata_fields":["@timestamp","arrivalTime"]}]]; nested: IllegalStateException[Field data loading is forbidden on severity];
Caused by: SearchParseException[failed to parse search source [{"highlight":{"pre_tags":["@kibana-highlighted-field@"],"post_tags":["@/kibana-highlighted-field@"],"fields":{"":{}},"require_field_match":false,"fragment_size":2147483647},"query":{"filtered":{"query":{"query_string":{"query":"type:AcpLog","analyze_wildcard":true}},"filter":{"bool":{"must":[{"query":{"query_string":{"query":"","analyze_wildcard":true}}},{"range":{"@timestamp":{"gte":1361916387285,"lte":1519682787285,"format":"epoch_millis"}}}],"must_not":[]}}}},"size":500,"sort":[{"severity":{"order":"asc","unmapped_type":"boolean"}}],"fields":["","_source"],"script_fields":{},"fielddata_fields":["@timestamp","arrivalTime"]}]]; nested: IllegalStateException[Field data loading is forbidden on severity];