# AWS Route 53 logs and metrics

Updated Nov 22, 2026 · today

Route 53 can write DNS query logs to CloudWatch Logs, and publishes metrics under `AWS/Route53` (health checks) and `AWS/Route53Resolver`. Both can reach Epok through the shared setup on [AWS: logs and metrics](https://epok.cloud/docs/install/aws).

On this page: What you get Turn on logs Metrics Useful searches Troubleshooting

## What you get

- **Logs:** DNS query-log lines (from public hosted-zone query logging or Resolver query logging), from a group like `/aws/route53/<zone>`. The line is stored as text in `_msg`; the fields inside it are not parsed yet.
- **Metrics:** the `AWS/Route53` namespace (health-check status) and the `AWS/Route53Resolver` namespace.

Each event also gets `_time`, a `level` detected from words in the line, `service` (the last part of the group name), `log_group`, `log_stream`, `cloud.provider`, `cloud.account_id` and `cloud.region`.

## Turn on logs

1. In the Route 53 console, open the hosted zone and choose **Configure query logging**, or for Resolver, open Query logging and configure it. Choose a CloudWatch Logs log group as the destination. For a public hosted zone, the group must be in us-east-1 and its name must start with `/aws/route53/`, so run the logs setup in us-east-1.
2. Route 53 writes through a CloudWatch Logs resource policy, not an IAM role. The console offers to create the policy for you.
3. Add the group to `EPOK_LOG_GROUPS` and run the setup on [AWS: logs and metrics](https://epok.cloud/docs/install/aws).

## Metrics

The namespaces are `AWS/Route53` and `AWS/Route53Resolver`. Neither is in the default metric stream list, so to receive them run the metrics setup with `EPOK_METRIC_NAMESPACES=all` (streams every namespace; check the cost first).

## Useful searches

```
log_group:"/aws/route53/example.com" _msg:"www.example.com"  # queries for one name
log_group:"/aws/route53/example.com" _msg:"NXDOMAIN"  # names that do not exist
log_group:"/aws/route53/example.com" _time:1h | stats by (log_stream) count()  # queries per edge location
```

Because each query log is one text value, searches use `_msg:` for the contents. Filtering by queried name or response code as separate fields is not supported yet.

## Troubleshooting

1. **No group appears.** Query logging is off, or the destination was set to S3 or Kinesis Data Firehose instead of CloudWatch Logs. Reopen the query-logging configuration and choose CloudWatch Logs.
2. **Fields are not searchable.** Expected: query-log lines are stored as text, so search with `_msg:`. Parsed fields come later.
3. **Metrics missing.** `AWS/Route53` and `AWS/Route53Resolver` are not in the default list. Confirm you ran the metrics setup with `EPOK_METRIC_NAMESPACES=all`, then run `bash aws-metrics.sh --verify-only`.

Next

- [AWS: logs and metrics](https://epok.cloud/docs/install/aws): the one CloudFormation stack this page feeds into.
- [Search syntax](https://epok.cloud/docs/search-syntax): field filters, booleans and pipes.
