Connect to Google Vertex
editConnect to Google Vertex
editThis page provides step-by-step instructions for setting up a Google Vertex AI connector for the first time. This connector type enables you to leverage Vertex AI’s large language models (LLMs) within Elastic Security. You’ll first need to enable Vertex AI, then generate an API key, and finally configure the connector in your Elastic Security project.
Before continuing, you should have an active project in one of Google Vertex AI’s supported regions.
Enable the Vertex AI API
edit- Log in to the GCP console and navigate to Vertex AI → Vertex AI Studio → Overview.
- If you’re new to Vertex AI, the Get started with Vertex AI Studio popup appears. Click Vertex AI API, then click ENABLE.
The following video demonstrates these steps.
![](https://play.vidyard.com/vFhtbiCZiKhvdZGy2FjyeT.jpg)
For more information about enabling the Vertex AI API, refer to Google’s documentation.
Create a Vertex AI service account
edit- In the GCP console, navigate to APIs & Services → Library.
- Search for Vertex AI API, select it, and click MANAGE.
- In the left menu, navigate to Credentials then click + CREATE CREDENTIALS and select Service account.
- Name the new service account, then click CREATE AND CONTINUE.
- Under Select a role, select Vertex AI User, then click CONTINUE.
- Click Done.
The following video demonstrates these steps.
![](https://play.vidyard.com/tmresYYiags2w2nTv3Gac8.jpg)
Generate an API key
edit- Return to Vertex AI’s Credentials menu and click Manage service accounts.
- Search for the service account you just created, select it, then click the link that appears under Email.
- Go to the KEYS tab, click ADD KEY, then select Create new key.
- Select JSON, then click CREATE to download the key. Keep it somewhere secure.
The following video demonstrates these steps.
![](https://play.vidyard.com/hrcy3F9AodwhJcV1i2yqbG.jpg)
Configure the Google Gemini connector
editFinally, configure the connector in your Elastic deployment:
- Log in to your Elastic deployment.
- Navigate to Stack Management → Connectors → Create Connector → Google Gemini.
- Name your connector to help keep track of the model version you are using.
- Under URL, enter the URL for your region.
- Enter your GCP Region and GCP Project ID.
-
Under Default model, specify either
gemini-1.5.pro
orgemini-1.5-flash
. Learn more about the models. - Under Authentication, enter your API key.
- Click Save.
The following video demonstrates these steps.
![](https://play.vidyard.com/8L2WPm2HKN1cH872Gs5uvL.jpg)