Hello Shubham,
It looks like you are attempting to install Wazuh with Elastic using the old Kibana plugin. Would you be able to let me know if this is correct?
If that is the case, then 4.5.x was the last version of Wazuh that was compatible with ELK, version 4.8.2, like you are using, is not compatible with this plugin. This is why you are getting errors on the API regarding this.
Do let me know if you need anything else.
Regards,
Gonzalo