Kibana upgrade failed with v8

Hi,
I have upgraded kibana v8 from 7.17.16.
I am getting the below error .

Error: [config validation of [elasticsearch].preserveHost]: definition for this key is missing

could you please help me.

Thanks.

Duplicate of Kibana upgrade failed - Error: [config validation of [elasticsearch].preserveHost]: definition for this key is missing

Let's keep the discussion there. Thanks.

Thank you