You can generate API Keys for Elastic Search from kibana dashboard. Here is a simple video on how to obtain them:
You can directly add the keys in the portal for Elastic Search integration,If you adding via the vpc agent, see the sample credentials for adding elastic search. Check the sample here.