Datadog
The Datadog alert channel provides a unified view of your metrics, logs, and performance data combined with your cloud security data.
Follow the procedures described below to integrate Lacework and Datadog.
Create an API Key in Datadog for Lacework
Integrating Lacework and Datadog requires you to create an API key in Datadog. Ensure you create an API key, not an application key.
- Log in to the Datadog interface and navigate to Organization Settings > API Keys.
You can also connect to https://app.datadoghq.com/organization-settings/api-keys. - Click + New Key.
- In the popup window, add the name for the new API key.
- Click Create Key.
This adds the new API key to the list. - Verify the newly created API key. This is what you provide as input in the Lacework Console.
For additional information about Datadog, refer to their documentation: https://docs.datadoghq.com/account_management/api-app-keys/.
Create a Datadog Alert Channel from the Lacework Console
Navigate to Datadog
- Log in to the Lacework Console as a Lacework user with administrative privileges.
- Go to Settings > Notifications > Alert channels.
- Click + Add New.
- Select Datadog.
- Click Next.
- Follow the steps in the next section.
Create a Datadog Alert Channel
Ensure you already have a Datadog API key as described in Create an API Key in Datadog for Laceworkx. You can have as many channels as needed but it is best to have a unique Datadog API key for each. Complete the following steps:
- Enter a unique name for the alert channel.
- Click Next.
- For Datadog Service, select Logs Detail (default), Logs Summary, or Events Summary.
- For Datadog Site, select com or eu. This is where you want to store your logs, either the US or Europe.
- For API Key, enter the API key that you created previously. This is required to submit metrics and alerts to Datadog.
- Click Save.
- Click Alert rules and configure your required alert routing details/options by leveraging the alert channel you created.
Select a Datadog Service to Use
If you have a Datadog license for logs, then you get the most functionality from the alert channel because you can index, search, add monitors, rehydrate, create dashboards, and perform other critical functions with the data. If you do not have a license for logs, then you can only view data in the event stream.
Summary vs. Detailed Data
Lacework recommends sending all detailed data because this results in higher-level log fidelity and details. If you want to trim data, however, you can send the summary.
View Lacework Data in the Datadog Dashboard
To view data that Lacework sends, query the sent data, and set up monitors or dashboards you must log in to the Datadog Dashboard and then click the logs and search. That screen should display a new source called Lacework.
The log data shows the JSON output of Lacework alerts. When viewing detailed alerts, you can see all information from the alert itself as you can in the Lacework Console. Inside the alert there are also links to the Lacework dashboard if more triage is needed.
Create a Lacework Datadog Alert Channel Using Terraform
For organizations using Terraform to manage their environments, Lacework maintains the Terraform provider for Lacework, which enables configuration of Lacework alert channels using automation.
If you are new to the Lacework Terraform Provider, or Lacework Terraform Modules, read through the Terraform for Lacework Overview to learn the basics on how to configure the provider, and more.
# Configure Datadog Alert Channel in Lacework
resource "lacework_alert_channel_datadog" "example" {
name = "Datadog Alert Channel Example"
datadog_site = "eu"
datadog_service = "Events Summary"
api_key = "datadog-key"
}
Additional information on the lacework_alert_channel_datadog
resource can be found on the Terraform Registry.