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.
On this page: What you getTurn on logsMetricsUseful searchesTroubleshooting
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/Route53namespace (health-check status) and theAWS/Route53Resolvernamespace.
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
- 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. - Route 53 writes through a CloudWatch Logs resource policy, not an IAM role. The console offers to create the policy for you.
- Add the group to
EPOK_LOG_GROUPSand run the setup on AWS: logs and metrics.
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 locationBecause 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
- 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.
- Fields are not searchable.Expected: query-log lines are stored as text, so search with
_msg:. Parsed fields come later. - Metrics missing.
AWS/Route53andAWS/Route53Resolverare not in the default list. Confirm you ran the metrics setup withEPOK_METRIC_NAMESPACES=all, then runbash aws-metrics.sh --verify-only.
Next
- AWS: logs and metrics: the one CloudFormation stack this page feeds into.
- Search syntax: field filters, booleans and pipes.