Federated Logs

Join the Preview!

Federated Logs is in Preview. Use this form to submit your request today.

Request Access

Overview

Federated Logs lets you search logs stored in your own data platform, such as Databricks, from Log Explorer, without ingesting them into Datadog. Datadog translates your Log Explorer query into the query language of the source and runs it against your table. The data stays in your data platform.

Use Federated Logs to investigate logs that you keep in your data platform, such as logs retained for compliance or analytics.

With an external source, you can:

  • Search and filter logs with the Log Explorer search syntax.
  • View results in the list view and in a timeline histogram grouped by status.
  • Open a log in the side panel and share a link to it.
  • Add or remove columns, and export results to CSV.

Prerequisites

  • Access to the Federated Logs Preview. To request access, complete the Preview form.
  • At least one external source. See External Sources.
  • The Logs Federated Query Read (logs_federated_query_read) permission, which lets you search external sources in Log Explorer. For more information, see Role Based Access Control.

Search federated logs

  1. Go to Log Explorer.
  2. Click the data source dropdown next to the search bar, which is set to Indexes by default.
  3. Under External Sources, select your source type, and then select an external source.
  4. Select a time range and enter a query, such as service:web status:error.

Search syntax

Federated Logs uses the Log Explorer search syntax. Each term in your query searches a column of your table:

service:web
Searches the column mapped to the Datadog field in the schema mapping. Applies to host, service, source, status, message, and _id.
@http_status_code:500
Searches the top-level column with that name. The column does not need to be mapped.
env:prod
Searches for the env:prod value in your tags column, which is the column you selected for the Tags field in the schema mapping. If you didn’t map the Tags field, Datadog searches a column named tags. If the table has no tags column, the query returns an error.

To search a column of your table, prefix its name with @. A key:value term without @ searches your tags column.

Limitations

  • Full-text search, CIDR queries, and filters on nested JSON or STRUCT fields are not supported.
  • Wildcards and ranges on tags are not supported.
  • Columns that are not mapped to a Datadog field are not displayed as attributes in the side panel.
  • Analytics views, such as grouping and timeseries, are not available.

Further reading