Kibana uiSettings overrides

Hi all,

Apologies if this has been posted about before - I couldn't find anything about this specific problem.

I'm running Kibana 8.19

I'm trying to use the uisettings overrides in Kibana.yml, as documented here

They've mostly worked like a charm except for defaultColumns and metaFields. I've tried a bunch of variations (ok, maybe 3) and they all have their own issues

1. these seem closest to the documented type of string, but the logs show they don't pass validation and cause Kibana to continuously restart. The logs mention something about needing to be arrays...

metaFields: "_source,_id,_type,_index,_score,_size"

defaultColumns: "message"

2. .... so I tried a direct array, and Kibana can start but on the adcanced settings page when I view those two settings they show up big red boxes. Additionally, in discover, the default columns are made up of the characters in "message"

    metaFields: ["_source","_id","_type","_index","_score","_size"]
    defaultColumns: ["message"]

3. Some AI suggested they need to be passed as strings containing JSON which Kibana could then convert into JSON so I tried that, but had the same symptoms as above

    metaFields: '["_source","_id","_type","_index","_score","_size"]'
    defaultColumns: '["message"]'

What am I doing wrong?

Cheers!

Daire

Hello @DOBs

I have not tried it but if possible can we test below :

uiSettings:
  overrides:
    metaFields: [_source, _id, _index, _score, _ignored]
    defaultColumns: [message]

Thanks!!

Thank you for your reply. I tried the below (I don't have _ignore, is that important? It's not a metaField we're trying to set)

```

`
metaFields: [_source,_id,_type,_index,_score,_size]
"discover:sampleSize": 5000
"histogram:maxBars": 10000
# NB the logs  previously showed that defaultColumns is validated as JSON despite being documented as type string
#below, very like metaFields, is showing an error in the Kibana UI
defaultColumns: [message]



Unfortunately it seems to generate the same result for defaultColumns viewing from discover:

I couldn't look at the advanced settings page but expect to see the same for defaultColumns and metaFields where it's a red block - the page was taking a long time to load after changing the config with those settings - though interestingly the logs didn't seem to show issues with validation which I thought I saw before with your completely quote free style