Tried updating to 7.3 today. I now get this error when opening the Discover pane, or trying to review the fields of specific indexes under "Management / Index patterns"
child "meta_fields" fails because ["meta_fields" must be an array]
Hello,
Can you provide Kibana logs, screenshots, browser console logs etc. what were the steps you took ? May be try deleting the index and re-creating it and see if it disappears.
What is the meta_fields field like ?
The issue seems to mysteriously now be resolved on the VM it was occurring on. I think I had played with the "Meta fields" setting, but failed to restart Kibana, but I'm not sure. I was consistently seeing the issue with 7.3 deployments though, so I'll attempt a repeat deployment shortly to see if it still re-occurs.
I'll attempt to paste in my Kibana.log in a following post; it's large so I'm unclear it will be allowed; and this site only seems to allow for image attachments.
Updated my JVM config to disable illegal reflective access warnings
Set base path for Kibana reverse proxy access
Disabled: Application Performance Monitoring interface, Infrastructure and Logs interfaces, Telemetry
Added delay to Kibana service to to allow for Elasticsearch initialization /wo extensive errors/warnings
Start ELK services
Load a default index pattern:
{
"attributes": {
"title": "logstash-*",
"timeFieldName": "@timestamp",
"sourceFilters": "[{"value":"@version"},{"value":"alert.metadata.engine"},{"value":"in_iface"},{"value":"path"},{"value":"type"}]"
}
}
Set a default date format: curl --connect-timeout 15 -s -X POST http://localhost:5601/kibana/api/kibana/settings/dateFormat -H "Content-Type: application/json" -H "kbn-xsrf: true" -d '{"value": "YY-MM-DD HH:mm:ss.SSS"}'
Set Kibana default index pattern: curl --connect-timeout 15 -s -X POST http://localhost:5601/kibana/api/kibana/settings/defaultIndex -H "Content-Type: application/json" -H "kbn-xsrf: true" -d '{"value": "logstash-*"}'
Set Kibana Discovery search size: curl --connect-timeout 15 -X POST http://localhost:5601/kibana/api/kibana/settings/discover:sampleSize -H "Content-Type: application/json" -H "kbn-xsrf: true" -d '{"value": "1000"}'
Hide Kibana fields found outside of source: curl --connect-timeout 15 -s -X POST http://localhost:5601/kibana/api/kibana/settings/metaFields -H "Content-Type: application/json" -H "kbn-xsrf: true" -d '{"value": ["_source"]}'
Loaded a few dashboards / visualizations
Rebooted
Got errors from any dashboard /w a discover pane and the discover pane itself.
The meta_fields field is set per the curl above as: "_source"
In general the error provided here could be more explicit. I wasn't clear what meta_fields even was; and didn't realize it was one of Kibana's Advanced Settings.
Not resolved. It reoccurs on a repeat deployment. I think I had just failed to restart Kibana after revising Meta fields when poking at things previously.
Here is the content of... http://localhost:5601/kibana/api/kibana/settings
...returns... {"settings":{"buildNum":{"userValue":25250},"dateFormat":{"userValue":"YY-MM-DD HH:mm:ss.SSS"},"defaultIndex":{"userValue":"logstash-*"},"discover:sampleSize":{"userValue":"1000"},"metaFields":{"userValue":["_source"]}}}
...where metaFields is an array.
Resetting "Meta fields" to the default via the UI: _source, _id, _type, _index, _score or any value that contains multiple fields resolves the issue; but setting it to _source , or any singular field (i.e. _id ) via the UI causes it to return; even though the singular value is still stored as an array (Kibana must be restarted between edits).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.