-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Unable to open index in Discover and Visualize when date format is epoch_millis #19858
Comments
Looking at elastic/elasticsearch#22621 it seems like ES should have denied a non UTC time zone with format @elastic/kibana-discovery @elastic/kibana-management @elastic/kibana-visualizations can anyone see a reason, why this recently started failing? Did we earlier respect the I will already mark that as a blocker for 6.4, until we have figured out more, how, why and since when this is failing. If we find out that it's not a new issue, we might lift that again, but I want to make sure this issue gets enough attention. |
I checked your example above and we haven't changed anything (important) in the request we send. Request in 6.3
Request in master
So the only thing that changes, is that we now have added a For whatever reasons that seems to be failing against a master snapshot of ES. So I assume something changed there, but haven't found any related issue. @elastic/es-search-aggs Do you have any idea what changed here? |
Maybe related: elastic/elasticsearch#29310 |
I can confirm this happens for me in 6.x but not in 6.3. I suspect its an unwanted side effect of the bugfix mentioned above, but I will try to confirm that by reverting it on 6.x |
Hmm, I still get the error on 6.x after reverting the commit from elastic/elasticsearch#29310, so maybe its unrelated after all. Not sure though. One thing to note: the only non-test change in #29310 was in RangeFieldMapper, which I'm not sure atm how it can affect the date queries or aggregations, so maybe its something else after all. Keep digging. |
Unfortunately #29310 seems unrelated, at least from what I can tell after doing some debugging. |
Tracking this further down I found elastic/elasticsearch#30534 which. When reverting this commit, I don't see the reported issue any more. Will need to check if the problem is a side effect of something else or an actual bug and if we can fix it without reverting. |
I opened elastic/elasticsearch#31392 to see how to fix this. Maybe this will require specifying the "format" option explicitely on the kibana side for the aggregation. Would this work @timroes ? |
I opened elastic/elasticsearch#31407 with which I hope is a fix. |
I commited what I think is a fix in elastic/elasticsearch#31392 to master and the 6.4 branch. |
Awesome @cbuescher ! 🎉 Not sure if more checks for Kibana are needed @timroes ? |
@pheyos Great. Again thanks for catching this. |
Awesome. No, I don't have any different test set, so if you consider that issue resolved, I will close it. Thanks @cbuescher for taking care of this so quickly. |
Kibana version: 6.x (currently 6.4) and master (currently 7.0)
Elasticsearch version: 6.x (currently 6.4) and master (currently 7.0)
Server OS version: Ubuntu 18.04
Browser version: Firefox latest, Chromium latest
Browser OS version: Ubuntu 18.04
Original install method (e.g. download page, yum, from source, etc.): Download archives from staging
Describe the bug:
When selecting an index pattern for an index with a date field of format
epoch_millis
, an error message is shown and no data is loaded (see screenshot of error message below).Steps to reproduce:
time_format
explicitely set toepoch_millis
and second one with automatictime_format
):test_epochmilli_1
andtest_epochmilli_2
(with time field@timestamp
)test_epochmilli_2
inDiscover
(or render a data histogram inVisualize
)test_epochmilli_1
inDiscover
(or render a data histogram inVisualize
)Expected behavior:
test_epochmilli_1
should work liketest_epochmilli_2
Screenshots (if relevant):
Any additional context:
GET test_epochmilli_1/_search
)The text was updated successfully, but these errors were encountered: