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.

Attachments

1

Gliffy Diagrams

Activity

Show:

Philippe Weber February 4, 2013 at 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.

Won't Fix

Details

Assignee

Reporter

Affects versions

Created February 4, 2013 at 5:44 AM
Updated April 19, 2013 at 8:19 PM
Resolved February 4, 2013 at 2:18 PM