-
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
Discover shows whole json object #15951
Comments
Mapping for the
Used to be
The
Regards |
What does Kibana show as the "type" of the |
That I did of course, but it doesnt change a thing. I guess it may be due to the legacy data. |
Yes, if you have old indices with different mappings for |
Does Kibana say anything about the field having a mapping conflict on the management screen? I'd be surprised if it didn't. |
It doesnt. |
Ok, so after much delay I had some time to try to reproduce this. It was pretty easy following the info @dosera provided above. I created two indices, one where Here are the Console requests I used, in case anyone wants to quickly reproduce this and take a swing at fixing it:
|
This ES ticket is related and I think required to solve this one: elastic/elasticsearch#33237 |
I have the same issue, without having the heterogeneous objects. I can delete the index completely and it gets recreated with the proper mappings, but shows in Discover as json blobs only. |
Mapping: etc... In Discover: Before deleting and recreating indices (to fix the API/FORBIDDEN issue), these all showed as individual fields. Same versions of everything. |
Kibana is adding an extraneous entry for the object itself when it creates the index pattern. Removing this manually fixes that object, but it comes back if you refresh the pattern. Clearly a bug in Kibana's index pattern creation. Can we get a fix, please? |
Please, does anyone know how to make Kibana display objects properly, again? |
https://www.elastic.co/guide/en/kibana/6.7/document-data.html#adding-columns You can see an example here of what should be happening. Here's the documentation for the elastic mapping: |
@darkmoon03 could you provide exact steps to reproduce? When I look at a basic object field in Discover I'm still seeing the individual subfields correctly. |
Fixed via #83891 |
I just noticed - after upgrading heartbeat from 5.x to 6.x - hat the discover view displays a whole json object as a string instead of the simple fields.
Following scenario:
I have an index pattern with
When looking at the discover view, it looks like this:

I would expect - since monitor is no string here - one entry per field, e.g.
"monitor.name": "name"
"monitor.id": "id"
...
The text was updated successfully, but these errors were encountered: