Overview
Datadog Log Management is a component of the broader Datadog observability platform, designed to aggregate, process, and analyze log data from diverse sources across an organization's infrastructure and applications. It aims to provide developers, operations teams, and security analysts with a unified view of their log events, enabling faster issue resolution and proactive monitoring. The service supports ingestion from virtual machines, containers, serverless functions, cloud services, and custom applications, offering a comprehensive approach to log collection (Datadog Logs documentation).
The platform is engineered to handle high volumes of log data, transforming raw logs into a structured, searchable format. This process involves automatic parsing, enrichment, and tagging, which helps in organizing data for efficient querying and visualization. Users can define custom parsing rules to extract specific fields from unstructured log entries, ensuring that critical information is readily available for analysis.
Datadog Log Management is particularly well-suited for organizations that operate complex, distributed systems, such as microservices architectures or multi-cloud environments. Its capabilities for real-time log analytics allow teams to identify patterns, detect anomalies, and correlate log events with other telemetry data like metrics and traces. This cross-correlation is crucial for understanding the root cause of performance degradation or application errors, aligning with the principles of modern observability as described by industry experts like Martin Fowler on microservices architecture. The platform's ability to integrate log data with other monitoring tools within the Datadog ecosystem provides a holistic view of system health and performance.
Beyond troubleshooting, Datadog Log Management also supports security use cases by facilitating the detection of suspicious activities and compliance auditing. Teams can establish alerts based on specific log patterns or thresholds, receiving notifications for potential security threats or operational issues. Its compliance certifications, including SOC 2 Type II, GDPR, and HIPAA, indicate suitability for regulated industries requiring stringent data handling and auditing capabilities (Datadog homepage).
Key features
- Log Ingestion and Aggregation: Collects logs from any source, including servers, containers, cloud functions, and third-party services, providing a centralized repository (Datadog Logs documentation).
- Real-time Log Processing: Automatically parses, enriches, and tags log data as it arrives, making it immediately available for search and analysis.
- Advanced Search and Filtering: Offers a powerful query language to search, filter, and group logs by any attribute, facilitating rapid investigation of issues.
- Customizable Dashboards: Visualize log patterns, trends, and anomalies using customizable dashboards that support various chart types and widgets.
- Alerting and Notifications: Configure alerts based on log volume, specific log patterns, or error rates, with integrations for communication platforms like Slack, PagerDuty, and email.
- Log Anomaly Detection: Leverages machine learning to automatically identify unusual log patterns that may indicate emerging issues.
- Live Tail: Provides a real-time stream of incoming logs, allowing immediate observation of system activity.
- Log Rehydration and Retention: Offers flexible options for retaining logs over different durations and rehydrating older logs for historical analysis (Datadog Log Management pricing).
- Integration with APM and Infrastructure Monitoring: Correlates log data with application performance metrics, traces, and infrastructure metrics for a unified view of system health.
Pricing
Datadog Log Management pricing is structured around the volume of ingested and indexed logs, with varying costs for retention and rehydration services. The pricing model allows for flexibility based on an organization's specific logging needs.
| Service Component | Pricing (As of 2026-05-26) | Notes |
|---|---|---|
| Ingested Logs | $0.10/GB | Volume of logs collected before indexing. |
| Rehydrated Logs | $0.05/GB | Cost for retrieving logs from archival storage for re-indexing. |
| Indexed Logs | $0.10/GB | Volume of logs actively indexed and available for real-time search and analysis. |
| Retention Options | Varies by duration | Different tiers for log retention period (e.g., 7 days, 15 days, 30 days, or custom). |
For detailed and up-to-date pricing information, including various retention tiers and enterprise options, refer to the Datadog Log Management pricing page.
Common integrations
- Cloud Providers: AWS CloudWatch, Azure Monitor, Google Cloud Logging (Datadog Integrations documentation).
- Container Orchestration: Kubernetes, Docker.
- Messaging Queues: Apache Kafka, RabbitMQ.
- Web Servers: Nginx, Apache HTTP Server.
- Databases: MySQL, PostgreSQL, MongoDB.
- Serverless Platforms: AWS Lambda, Azure Functions.
- CI/CD Tools: Jenkins, Travis CI (Travis CI documentation).
Alternatives
- Splunk Cloud Platform: Offers comprehensive log management and security information and event management (SIEM) capabilities for large-scale data analysis (Splunk homepage).
- New Relic Logs: Provides log management as part of its observability platform, focusing on correlating logs with APM and infrastructure data (New Relic homepage).
- Elastic Observability (ELK Stack): A popular open-source suite (Elasticsearch, Logstash, Kibana) for log aggregation, search, and visualization, available as a self-managed solution or cloud service (Elastic homepage).
- Sumo Logic: A cloud-native log management and analytics service designed for security and operations teams (Sumo Logic homepage).
- Grafana Loki: A log aggregation system designed to store and query logs using labels, inspired by Prometheus, often paired with Grafana for visualization (Grafana Loki documentation).
Getting started
To begin sending logs to Datadog using Python, you can use the Datadog API client. This example demonstrates how to send a simple log message.
import os
from datadog_api_client.v2 import ApiClient, Configuration
from datadog_api_client.v2.api.logs_api import LogsApi
from datadog_api_client.v2.model.http_log_item import HTTPLogItem
# Configure API key and application key
configuration = Configuration()
configuration.api_key["apiKeyAuth"] = os.environ.get("DD_API_KEY")
configuration.api_key["appKeyAuth"] = os.environ.get("DD_APPLICATION_KEY")
def send_log_to_datadog(message, service, hostname, tags=None):
try:
with ApiClient(configuration) as api_client:
api_instance = LogsApi(api_client)
body = [
HTTPLogItem(
message=message,
service=service,
hostname=hostname,
ddtags=tags if tags else "env:dev"
),
]
response = api_instance.submit_log(body=body)
print(f"Log submitted successfully: {response}")
except Exception as e:
print(f"Error submitting log: {e}")
if __name__ == "__main__":
# Set your Datadog API and Application keys as environment variables
# export DD_API_KEY="YOUR_API_KEY"
# export DD_APPLICATION_KEY="YOUR_APPLICATION_KEY"
log_message = "User 'jdoe' logged in from 192.168.1.100"
service_name = "auth-service"
host_name = "web-server-01"
custom_tags = "env:production,version:1.2.3,user_id:12345"
send_log_to_datadog(log_message, service_name, host_name, custom_tags)
Before running this code, ensure you have the Datadog API client library installed (pip install datadog-api-client) and your DD_API_KEY and DD_APPLICATION_KEY are set as environment variables. You can find your API and application keys in your Datadog account settings (Datadog Logs API reference).