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

spalger picture spalger  路  3Comments

cafuego picture cafuego  路  3Comments

timroes picture timroes  路  3Comments

tbragin picture tbragin  路  3Comments

ynux picture ynux  路  3Comments