Skip to content

Crash if logstash-* index does not exist #7675

@andre-pt

Description

@andre-pt

Kibana version: 4.5.1

OS version: Red Hat Enterprise Linux Server release 7.2 (Maipo)

Original install method (e.g. download page, yum, from source, etc.): download page

Description of the problem including expected versus actual behavior:
In my logstash config I have:

      elasticsearch {
        hosts => ["127.0.0.1:9200"]
        index => "myIndex-%{+YYYY.MM}"
        document_id => "%{id}"
      }

If I start Kibana, it crashes because it doesn't find a logstash-* index.

I would expect to be able to choose the index pattern I want afterwards.

Steps to reproduce:

  1. I have just started a fresh elasticsearch with no data.
  2. Started logstash, which created some indexes myIndex-*
  3. Connected to Kibana using Chrome in Windows.

At this point Kibana gave me the following error:
Fatal Error
unknown error

Version: 4.5.1
Build: 9892
Error: unknown error
    at respond (http://127.0.0.1:10316/bundles/kibana.bundle.js?v=9892:76380:16)
    at checkRespForFailure (http://127.0.0.1:10316/bundles/kibana.bundle.js?v=9892:76341:8)
    at http://127.0.0.1:10316/bundles/kibana.bundle.js?v=9892:74959:8
    at processQueue (http://127.0.0.1:10316/bundles/commons.bundle.js?v=9892:42360:29)
    at http://127.0.0.1:10316/bundles/commons.bundle.js?v=9892:42376:28
    at Scope.$eval (http://127.0.0.1:10316/bundles/commons.bundle.js?v=9892:43604:29)
    at Scope.$digest (http://127.0.0.1:10316/bundles/commons.bundle.js?v=9892:43415:32)
    at Scope.$apply (http://127.0.0.1:10316/bundles/commons.bundle.js?v=9892:43712:25)
    at done (http://127.0.0.1:10316/bundles/commons.bundle.js?v=9892:38161:48)
    at completeRequest (http://127.0.0.1:10316/bundles/commons.bundle.js?v=9892:38359:8)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions