Kibana: No "auto" choice for Interval

Created on 16 Apr 2015  ·  3Comments  ·  Source: elastic/kibana

In another dataset where logstash pushed data to ES, I can create visualizations with the "auto" interval, but with another dataset where i push data via the Java API, "auto" is not in the dropdown box. See screeny.

screen shot 2015-04-16 at 10 19 56 pm

The Java code I'm using to push data is:

  IndexResponse response = transportClient.prepareIndex("foo", "bar", ("" + timestamp)).setSource( jsonBuilder()
      .startObject()
      .field("@timestamp", isoDateFormat.format(new Date(timestamp)))
      .field("url", "blah")
      .endObject()
      ).execute().actionGet();

Most helpful comment

I figured it out after hours of frustration. Refreshing the field list in settings is not sufficient. You need to first delete the index in Kibana and re-add it, where it lets you pick the timestamp field. Afterwards the little time icon shows up and "auto" shows up in the dropdown list.

All 3 comments

Auto is not supported for non-time based indices.

In settings (in Kibana), it says my @timestamp field is of type "date". In my logstash generated dataset it says my @timestamp field is of type "date" also, but it also shows a little time icon next to the field name. Do you know how I can get Kibana to recognize my field as a time too? It sees it as a Date. What else needs to be configured or changed?

screen shot 2015-04-16 at 10 55 17 pm

I figured it out after hours of frustration. Refreshing the field list in settings is not sufficient. You need to first delete the index in Kibana and re-add it, where it lets you pick the timestamp field. Afterwards the little time icon shows up and "auto" shows up in the dropdown list.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stacey-gammon picture stacey-gammon  ·  74Comments

seti123 picture seti123  ·  100Comments

AlexIoannides picture AlexIoannides  ·  138Comments

TiNico22 picture TiNico22  ·  87Comments

rashidkpc picture rashidkpc  ·  116Comments