Overview
When enabled, Elementary automatically streams your workspace’s audit logs (user activity logs and system logs) to Datadog using the Datadog Logs API. This allows you to:- Centralize all logs in your Datadog dashboard
- Set up custom alerts and monitors on log events
- Correlate Elementary logs with other application logs
- Perform advanced log analysis and search
- Maintain long-term log retention in Datadog
Prerequisites
Before configuring log streaming to Datadog, you’ll need:-
Datadog API Key - Your Datadog API key for authentication
- You can find or create an API key in your Datadog account under Organization Settings > API Keys
-
Datadog Site (optional) - Your Datadog site region
- Default:
datadoghq.com(US) - EU:
datadoghq.eu - US3:
us3.datadoghq.com - US5:
us5.datadoghq.com - AP1:
ap1.datadoghq.com
- Default:
Configuring Log Streaming to Datadog
-
Navigate to the Logs page:
- Click on your account name in the top-right corner of the UI
- Open the dropdown menu
- Select Logs
- Click on Configure Log Streaming or the Settings icon in the logs interface
- Select Datadog as your log streaming destination
-
Enter your Datadog configuration:
- API Key: Your Datadog API key
- Site (optional): Your Datadog site region (defaults to
datadoghq.comif not specified) - Service Name (optional): Custom service name for logs in Datadog (defaults to
elementary) - Source (optional): Custom source tag for logs (defaults to
elementary-cloud)
-
Choose which log types to stream:
- User Activity Logs: Stream all user activity and audit events
- System Logs: Stream system-level events (syncs, alert deliveries, etc.)
- You can enable one or both log types
- Click Save to enable log streaming
The log streaming configuration applies to your entire workspace. All logs matching your selected log types will be streamed to Datadog in real-time.
Log Format in Datadog
Logs are sent to Datadog with the following structure:User Activity Logs
Each user activity log entry includes:timestamp: ISO 8601 timestamp of the eventstatus: Log level (infofor successful actions,errorfor failed actions)message: Human-readable description of the actionservice: Service name (configurable, defaults toelementary)source: Source tag (configurable, defaults toelementary-cloud)dd.tags: Additional tags including:log_type:auditaction:<action_name>(e.g.,user_login,create_test)success:<true|false>user_email:<user_email>env_id:<environment_id>(if applicable)env_name:<environment_name>(if applicable)
- Custom attributes from the event content (JSON parsed)
System Logs
Each system log entry includes:timestamp: ISO 8601 timestamp of the eventstatus: Log level (infofor successful operations,errorfor failed operations)message: Human-readable description of the system eventservice: Service name (configurable, defaults toelementary)source: Source tag (configurable, defaults toelementary-cloud)dd.tags: Additional tags including:log_type:systemaction:<action_name>(e.g.,dbt_data_sync_completed,alerts_sent)success:<true|false>env_id:<environment_id>(if applicable)env_name:<environment_name>(if applicable)
- Custom attributes from the event content (JSON parsed)
Viewing Logs in Datadog
Once configured, logs will appear in your Datadog Log Explorer within a few seconds of being generated. You can filter logs using:source:elementary-cloud- All Elementary logslog_type:audit- User activity logs onlylog_type:system- System logs onlyaction:<action_name>- Specific action typesenv_name:<environment_name>- Logs from a specific environmentsuccess:false- Failed operations only
Troubleshooting
Logs not appearing in Datadog
- Verify API Key: Ensure your Datadog API key is valid and has the necessary permissions
- Check Site Configuration: Verify you’ve selected the correct Datadog site region
- Review Log Types: Confirm the log types you want to stream are enabled
- Check Datadog Status: Verify your Datadog account is active and not rate-limited
Rate Limiting
Datadog has rate limits for log ingestion. If you’re experiencing issues:- Check your Datadog account’s rate limits in the Usage & Billing page
- Consider filtering which log types you stream if you have high log volume
- Contact Datadog support if you need to increase your rate limits
Disabling Log Streaming
To disable log streaming to Datadog:- Navigate to the Logs page
- Click on Configure Log Streaming or the Settings icon
- Click Disable or remove the Datadog configuration
- Confirm the action

