Skip to Content
Asterrr's Handbook
2 · Incident response

Log Streaming and Dashboards

Real-time log pipelines with Amazon Data Firehose and OpenSearch Service, and Amazon Managed Grafana for dashboards.

The decision: which pipeline gives real-time search and dashboards over raw logs, and which tool gives one dashboard across accounts and data sources?

For real-time search and visualization of raw logs, stream them through Amazon Data Firehose into Amazon OpenSearch Service. For a single dashboard over many sources and accounts, use Amazon Managed Grafana.

raw logsparse to JSONindexfailuresdata sourceLog sourceData FirehoseLambda transformOpenSearchFailed docsbucketManaged Grafana
Firehose buffers, optionally transforms with Lambda, and delivers to OpenSearch. Documents that fail delivery land in S3 for backfill.

Data Firehose and OpenSearch

ItemWhat to remember
FirehoseFully managed delivery of streaming data. Buffers, compresses, transforms, can encrypt at the destination
Former nameKinesis Data Firehose
TransformationA Lambda function turns unstructured lines (such as Apache logs) into structured JSON. Records for OpenSearch must be UTF-8 single-line JSON
Failure handlingRetry duration is 0 to 7,200 seconds for OpenSearch. After that skipped documents are written to S3 under AmazonOpenSearchService_failed/
OpenSearch ServiceManaged search and dashboards. Supports VPC or public endpoints, IAM and Cognito for users, encryption at rest and in transit
Delivery semanticsAt least once, so duplicates are possible at OpenSearch

Legacy

Firehose was called Kinesis Data Firehose, and the Elasticsearch Service name became OpenSearch Service. Older exam questions may use the old names.

Amazon Managed Grafana

ItemWhat to remember
WhatManaged Grafana workspaces. AWS runs, scales and patches them
Data sourcesCloudWatch, Managed Service for Prometheus, X-Ray, OpenSearch Service, Timestream and others
Sign-inSingle sign-on only. IAM Identity Center or a SAML 2.0 identity provider, not IAM users
Roles in a workspaceAdministrator, Editor, User (viewer)
Private data sourcesReach VPC resources over PrivateLink or VPC peering, no public exposure
AlertingGrafana unified alerting rules with notifications
AuditManagement API calls appear in CloudTrail

Shared responsibility. AWS secures the service infrastructure. You set workspace roles, data source permissions and network settings.

Exam signal

"Single dashboard across many accounts and data sources without running servers" is Managed Grafana. "Search raw logs in near real time with full-text queries" is Firehose to OpenSearch. "Query CloudTrail files already in S3" is Athena.

Further reading

On this page