Empty indices throw error

Description

If an index exists but is empty, it seems that Logstash throws an exception when searching via Kibana.

To replicate:

Delete a type from an index. In my tests, it was the only type in the index, leaving it empty after deletion:

DELETE /logstash-2012.12.30/mytype/

Using Kibana, any queries including 2012/12/30 throws the exception attached.

Deleting the index entirely works okay.

Activity

Show:
Philippe Weber
February 4, 2013, 2:18 PM

This is not related to logstash, but to how Kibana query Elasticsearch and the explanation is in the stacktrace

Cannot try to sort on a missing field (as there is no data)...

It would be better for you to report your case on kibana project issues
https://github.com/rashidkpc/Kibana/issues

maybe the author have plan for this "corner" case already.

Assignee

Logstash Developers

Reporter

Chris Horsley

Labels

None

Affects versions

Configure