---
title: Getting Started with Logs
description: >-
  Collect logs from multiple sources, process and analyze them, and correlate
  these logs with traces and metrics.
breadcrumbs: Docs > Getting Started > Getting Started with Logs
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Getting Started with Logs

## Overview{% #overview %}

Use Datadog Log Management, also called logs, to collect logs across multiple logging sources, such as your server, container, cloud environment, application, or existing log processors and forwarders. With conventional logging, you have to choose which logs to analyze and retain to maintain cost-efficiency. With Datadog Logging without Limits*, you can collect, process, archive, explore, and monitor your logs without logging limits.

This page shows you how to get started with Log Management in Datadog. If you haven't already, create a [Datadog account](https://www.datadoghq.com).

## Configure a logging source{% #configure-a-logging-source %}

With Log Management, you can analyze and explore data in the Log Explorer, connect [Tracing](https://docs.datadoghq.com/tracing/other_telemetry/connect_logs_and_traces.md) and [Metrics](https://docs.datadoghq.com/logs/guide/correlate-logs-with-metrics.md) to correlate valuable data across Datadog, and use ingested logs for Datadog [Cloud SIEM](https://docs.datadoghq.com/security/cloud_siem.md). The lifecycle of a log within Datadog begins at ingestion from a logging source.

{% image
   source="https://docs.dd-static.net/images/getting_started/logs/getting-started-overview.34ea2bb8a81d3f8530403cca26a9e609.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/getting_started/logs/getting-started-overview.34ea2bb8a81d3f8530403cca26a9e609.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Different types of log configurations" /%}

### Server{% #server %}

There are several [integrations](https://docs.datadoghq.com/getting_started/integrations.md) available to forward logs from your server to Datadog. Integrations use a log configuration block in their `conf.yaml` file, which is available in the `conf.d/` folder at the root of your Agent's configuration directory, to forward logs to Datadog from your server.

```yaml
logs:
  - type: file
    path: /path/to/your/integration/access.log
    source: integration_name
    service: integration_name
    sourcecategory: http_web_access
```

To begin collecting logs from a server:

1. If you haven't already, install the [Datadog Agent](https://docs.datadoghq.com/agent.md) based on your platform.

**Note**: Log collection requires Datadog Agent v6+.

1. Collecting logs is **not enabled** by default in the Datadog Agent. To enable log collection, set `logs_enabled` to `true` in your `datadog.yaml` file.

1. Restart the [Datadog Agent](https://docs.datadoghq.com/agent/configuration/agent-commands.md#restart-the-agent).

1. Follow the integration [activation steps](https://app.datadoghq.com/logs/onboarding/server) or the custom files log collection steps on the Datadog site.

**Note**: If you're collecting logs from custom files and need examples for tail files, TCP/UDP, journald, or Windows Events, see [Custom log collection](https://docs.datadoghq.com/agent/logs.md?tab=tailfiles#custom-log-collection).

### Container{% #container %}

As of Datadog Agent v6, the Agent can collect logs from containers. Each containerization service has specific configuration instructions based where the Agent is deployed or run, or how logs are routed.

For example, [Docker](https://docs.datadoghq.com/agent/docker/log.md?tab=containerinstallation) has two different types of Agent installation available: on your host, where the Agent is external to the Docker environment, or deploying a containerized version of the Agent in your Docker environment.

[Kubernetes](https://docs.datadoghq.com/agent/kubernetes/log.md?tab=daemonset) requires that the Datadog Agent run in your Kubernetes cluster, and log collection can be configured using a DaemonSet spec, Helm chart, or with the Datadog Operator.

To begin collecting logs from a container service, follow the [in-app instructions](https://app.datadoghq.com/logs/onboarding/container).

### Cloud{% #cloud %}

You can forward logs from multiple cloud providers, such as AWS, Azure, and Google Cloud, to Datadog. Each cloud provider has its own set of configuration instructions.

For example, ​AWS service logs are usually stored in S3 buckets or CloudWatch Log groups. You can subscribe to these logs and forward them to an Amazon Kinesis stream to then forward them to one or multiple destinations. Datadog is one of the default destinations for Amazon Kinesis Delivery streams.​

To begin collecting logs from a cloud service, follow the [in-app instructions](https://app.datadoghq.com/logs/onboarding/cloud).

### Client{% #client %}

Datadog permits log collection from clients through SDKs or libraries. For example, use the `datadog-logs` SDK to send logs to Datadog from JavaScript clients.

To begin collecting logs from a client, follow the [in-app instructions](https://app.datadoghq.com/logs/onboarding/client).

### Other{% #other %}

If you're using existing logging services or utilities such as rsyslog, Fluentd, or Logstash, Datadog offers plugins and log forwarding options.

If you don't see your integration, you can type it in the *other integrations* box and get notifications for when the integration is available.

To begin collecting logs from a cloud service, follow the [in-app instructions](https://app.datadoghq.com/logs/onboarding/other).

## Explore your logs{% #explore-your-logs %}

Once a logging source is configured, your logs are available in the [Log Explorer](https://docs.datadoghq.com/logs/explorer.md). This is where you can filter, aggregate, and visualize your logs.

For example, if you have logs flowing in from a service that you wish to examine further, filter by `service`. You can further filter by `status`, such as `ERROR`, and select [Group into Patterns](https://docs.datadoghq.com/logs/explorer/analytics/patterns.md) to see which part of your service is logging the most errors.

{% image
   source="https://docs.dd-static.net/images/getting_started/logs/error-pattern-2024.286e9223737e7a0d6063de16c12f9ba4.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/getting_started/logs/error-pattern-2024.286e9223737e7a0d6063de16c12f9ba4.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Filtering in the Log Explorer by error pattern" /%}

Aggregate your logs into `Fields` and visualize as Top List to see your top logging services. Select a source, such as `info` or `warn`, and select View Logs from the dropdown menu. The side panel populates logs based on error, so you quickly see which host and services require attention.

{% image
   source="https://docs.dd-static.net/images/getting_started/logs/top-list-view-2024.13ff0972b0aaaf5e6f787f58211bd895.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/getting_started/logs/top-list-view-2024.13ff0972b0aaaf5e6f787f58211bd895.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="A top list in the Log Explorer" /%}

The Log Explorer offers the following features for log troubleshooting and exploration:

- [Advanced search and filtering](https://docs.datadoghq.com/logs/explorer/search_syntax.md) with facets and queries
- [Log Analytics](https://docs.datadoghq.com/logs/explorer/analytics/patterns.md) for grouping logs into patterns and aggregating data
- [Visualizations](https://docs.datadoghq.com/logs/explorer/visualize.md) to display log data in various formats
- [Saved Views](https://docs.datadoghq.com/logs/explorer/saved_views.md) to save and share your search configurations
- [Export options](https://docs.datadoghq.com/logs/explorer/export.md) to reuse your queries in different contexts

For detailed information about all Log Explorer features, see the [Log Explorer documentation](https://docs.datadoghq.com/logs/explorer.md).

## What's next?{% #whats-next %}

Once a logging source is configured, and your logs are available in the Log Explorer, you can begin to explore a few other areas of log management.

### Log configuration{% #log-configuration %}

- Set [attributes and aliasing](https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention.md) to unify your logs environment.
- Control how your logs are processed with [pipelines](https://docs.datadoghq.com/logs/log_configuration/pipelines.md) and [processors](https://docs.datadoghq.com/logs/log_configuration/processors.md).
- As Logging without Limits* decouples log ingestion and indexing, you can [configure your logs](https://docs.datadoghq.com/logs/log_configuration.md) and choose which logs to [index](https://docs.datadoghq.com/logs/log_configuration/indexes.md), [retain](https://docs.datadoghq.com/logs/log_configuration/flex_logs.md), or [archive](https://docs.datadoghq.com/logs/log_configuration/archives.md).

### Log correlation{% #log-correlation %}

- [Connect logs and traces](https://docs.datadoghq.com/tracing/other_telemetry/connect_logs_and_traces.md) to exact logs associated with a specific `env`, `service,` or `version`.
- If you're already using metrics in Datadog, you can [correlate logs and metrics](https://docs.datadoghq.com/logs/guide/correlate-logs-with-metrics.md) to gain context of an issue.

### Guides{% #guides %}

- [Best practices for Log Management](https://docs.datadoghq.com/logs/guide/best-practices-for-log-management.md)
- Dive further into [Logging without Limits*](https://docs.datadoghq.com/logs/guide/getting-started-lwl.md)
- Manage sensitive log data with [RBAC settings](https://docs.datadoghq.com/logs/guide/logs-rbac.md)

## Further reading{% #further-reading %}

Additional helpful documentation, links, and articles:

- [Getting Started with Log Explorer](https://learn.datadoghq.com/courses/log-explorer)
- [Process Logs Out of the Box with Integration Pipelines](https://learn.datadoghq.com/courses/integration-pipelines)
- [Manage and Monitor Indexed Log Volumes](https://learn.datadoghq.com/courses/log-indexes)
- [Log Collection & Integrations](https://docs.datadoghq.com/logs/log_collection.md)
- [Learn how to configure unified service tagging](https://docs.datadoghq.com/getting_started/tagging/unified_service_tagging.md)
- [Join an interactive session to optimize your Log Management](https://dtdg.co/fe)
 \*Logging without Limits is a trademark of Datadog, Inc.