-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad date range filter when filtering non-timefield date fields #6338
Comments
Legit bug It looks like we aren't passing the format when creating range filters that use a date field. Now that Elasticsearch no longer accepts epoch by default we'll need to check if the field is a date, and if it is we need to tell it we're supplying epoch millis This happens when creating a date_histogram agg on date field which is not the Here's how we fix this: |
Thanks Rashid. FWIW, I've found a workaround by specifying the format of the date field as follows:
May be useful for anyone who's facing this issue while we wait for a fix. Rashid, if you can explain why this "fixes" the problem, it'd be really educational for me :) I roughly surmised that doing this would allow ES to accept two formats of input but not sure if I'm right on that. |
@feicipet Hi, as described in https://www.elastic.co/guide/en/elasticsearch/reference/current/date.html#multiple-date-formats, the As you noted this is a workaround; the real fix ought to be on Kibana's end as Rashid noted in his comment above. |
Specifying date format when filtering a date histogram
This issue still doesn't seem to have been fixed in Kibana 4.5. As suggested by @feicipet, I had to add |
Hi @dlihhats, the issue has been fixed in Kibana 5. So you will need to upgrade to it to get the fix. Currently Kibana 5 is in an alpha release, which you can download from here: https://www.elastic.co/downloads/kibana (scroll down the page or search for "alpha"). |
This is broken again in the latest Kibana 6.1.2 I used the work around as suggested by @feicipet and it is working now. |
Hi,
I'm using Kibana version 4.4.1 with ES 2.2.0 from the Debian repos.
I have a field with the following type defined:
I created a data table visualization with a date histogram aggregation on this field:
When I click on one of the dates to filter though, I get an error where it tries to parse the millis-since-epoch value of the field in my field format:
Is this a bug or am I doing something wrong?
Thanks
Wong
The text was updated successfully, but these errors were encountered: