Kibana 8.4 expanded document views objects in multiple rows

we have recently upgraded our stack to 8.4 and noticed that when we expand a document object fields are displayed in multiple rows as attached below;

previously the field is displayed as a json with a toggle details which is more convenient for us to view as below

Is there a way to configure kibana to display object fields as a json in a single row?

Hey there,

  1. When in discover, click on the icon from the left side of the document (selected on screenshot)
  2. Click on 'JSON' to see the JSON view when in Expanded document view.

Would it solve it?

Hi Marta,

that is the workaround we are using right now, but it is not convenient as seeing object as json in a single row at once.

i have searched through configuration parameters but couldn't find one to display the objects in a single line.

right now, it seems like kibana is flattening the object fields in an array on its own and it definitely look weird.

for ex, if you have an arry like { x:[ { a: 10, b:20 }, { a:11, b:21}, {a:12, b:22}]}. it displays in rows like below;

x.a: 10,11,12
x.b: 20,21,22

isn't it possible with kibana 8.4?

Hi
I'm interested in the previous version of Kibana you were using? And what's your setting of discover:searchFieldsFromSource?


Thx & Best,
Matthias

Hi Matthias,

The previous one is 7.7.

currently discover:searchFieldsFromSource is OFF

Regards,
Kadir

Thank you,
could you share the mapping of productData.AmendIdnt, and maybe one sample JSON for it? Which 7.17.x is it exactly?

Many thx!
Matthias

hi Matthias,

version: 7.6.2

sample json;

   {
      "AmendIdnt": [
        {
          "amendment_id": "1664258007845::235",
          "ProductAmend": [
            {
              "rms_item": "215352077",
              "ean": "",
              "season_code": 200,
              "phase_code": 1,
              "ProductAmendLocations": [
                {
                  "location_id": 4701,
                  "action": "R",
                  "selling_retail": 5.5
                },
                {
                  "location_id": 3871,
                  "action": "R",
                  "selling_retail": 6.75
                },
                {
                  "location_id": 3471,
                  "action": "R",
                  "selling_retail": 7
                },
                {
                  "location_id": 3671,
                  "action": "R",
                  "selling_retail": 64
                },
                {
                  "location_id": 3451,
                  "action": "R",
                  "selling_retail": 72
                },
                {
                  "location_id": 3351,
                  "action": "R",
                  "selling_retail": 72
                },
                {
                  "location_id": 125,
                  "action": "R",
                  "selling_retail": 64
                }
              ],
              "ProductAmendSupplier": [
                {
                  "supplier_site_id": 124174801,
                  "unit_cost": 0.001
                }
              ]
            }
          ]
        }
      ]
    }

mapping:

                        "AmendIdnt": {
                            "properties": {
                                "amendment_id": {
                                    "type": "text",
                                    "fields": {
                                        "keyword": {
                                            "ignore_above": 256,
                                            "type": "keyword"
                                        }
                                    }
                                },
                                "ProductAmend": {
                                    "properties": {
                                        "phase_code": {
                                            "type": "long"
                                        },
                                        "ean": {
                                            "type": "text",
                                            "fields": {
                                                "keyword": {
                                                    "ignore_above": 256,
                                                    "type": "keyword"
                                                }
                                            }
                                        },
                                        "item_desc": {
                                            "type": "text",
                                            "fields": {
                                                "keyword": {
                                                    "ignore_above": 256,
                                                    "type": "keyword"
                                                }
                                            }
                                        },
                                        "season_code": {
                                            "type": "long"
                                        },
                                        "rms_item": {
                                            "type": "text",
                                            "fields": {
                                                "keyword": {
                                                    "ignore_above": 256,
                                                    "type": "keyword"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }

Regards,
Kadir

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.