ERROR in latest version of kibana configuration: {"message":"[config validation of [xpack.security].http]: definition for this key is missing"

I have install latest version of kibana in my Ubuntu 20.04. But while i start the kibana it get stops after few seconds. I got this in kibana logs "error":{"message":"[config validation of [xpack.security].http]: definition for this key is missing"

Here is my kibana configuration file.

"server.port: 5601

server.host: 0.0.0.0

elasticsearch.hosts: ["http://x.x.x.x:9200"]
elasticsearch.username: "elastic"
elasticsearch.password: "LXNnOukXUzgahppmFVK"

logging:
appenders:
file:
type: file
fileName: /var/log/kibana/kibana.log
layout:
type: json
root:
appenders:
- default
- file

pid.file: /run/kibana/kibana.pid"

hello, is that the full kibana.yml file?

Yes, its a full config file of kibana.

How did you install it? From a package or run from source? If you run it from source you need to specify what yml file to use.