
Configuring Datadog as a Source
In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the Datadog option from the list of connectors. Click Next and you’ll be prompted to add your access.1. Add account access
You’ll need to provide API credentials from your Datadog account to authenticate the connection. The following configurations are available:- API Key: The API key to authenticate against the API service. You can find this in your Datadog account under Organization Settings > API Keys. Check Datadog’s documentation for more details.
- App Key: The application key to authenticate against the API service. You can find this in your Datadog account under Organization Settings > Application Keys. Check Datadog’s documentation for more details.
- Start Date: The earliest record date to sync. This will be the earliest date for which log data will be retrieved.
- Query (optional): The query to search for logs. If not provided, all logs will be retrieved. You can use Datadog’s query syntax to filter by service, host, tags, or any other attributes.
2. Select streams
Choose which data streams you want to sync. The Datadog connector exposes a single stream: logs. Select the stream and click Next.3. Configure data streams
Customize how you want your data to appear in your catalog. Select the desired layer where the data will be placed, a folder to organize it inside the layer, a name for each table (which will effectively contain the fetched data) and the type of sync.- Layer: choose between the existing layers on your catalog. This is where you will find your new extracted tables as the extraction runs successfully.
- Folder: a folder can be created inside the selected layer to group all tables being created from this new data source.
- Table name: we suggest a name, but feel free to customize it. You have the option to add a prefix to all tables at once and make this process faster!
- Sync Type: you can choose between INCREMENTAL and FULL_TABLE.
- Incremental: every time the extraction happens, we’ll get only the new data - which is good if, for example, you want to keep every record ever fetched.
- Full table: every time the extraction happens, we’ll get the current state of the data - which is good if, for example, you don’t want to have deleted data in your catalog.
4. Configure data source
Describe your data source for easy identification within your organization, not exceeding 140 characters. To define your Trigger, consider how often you want data to be extracted from this source. This decision usually depends on how frequently you need the new table data updated (every day, once a week, or only at specific times). Optionally, you can define some additional settings:- Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource here.
- Determine when to execute an Additional Full Sync. This will complement the incremental data extractions, ensuring that your data is completely synchronized with your source every once in a while.
5. Check your new source
You can view your new source on the Sources page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.Streams and Fields
Below you’ll find the available data stream from Datadog and its corresponding fields:Logs
Logs
Stream for retrieving log events from Datadog with their associated metadata and attributes.
Attributes Object Contains:
| Field | Type | Description |
|---|---|---|
id | String | Unique identifier for each log event |
timestamp | String | When the log event occurred |
type | String | Type of log event |
attributes | Object | Additional log metadata including host, service, message, status, tags, and custom attributes |
host- The host where the log originatedservice- The service namemessage- The log message contentstatus- Status of the log eventtags- Array of tags associated with the logattributes- Array of custom attributes with key-value pairstimestamp- Timestamp within the attributes object
id
Replication Key: timestampData Model
The following diagram shows the structure of the Datadog logs stream:Implementation Notes
Data Quality Considerations
- The logs stream uses
timestampas the replication key for incremental syncs - All log attributes are nested within the
attributesobject - Custom log attributes and tags provide additional context for filtering and analysis
API Limits & Performance
- Use the optional
queryparameter to filter logs and reduce extraction time - Consider the volume of logs when setting extraction frequency
- Datadog’s API has rate limits that the connector respects automatically