Supported data types: Logs • Metrics
Ingestion with AWS Data Firehose
Stream CloudWatch data to Phoebe using Amazon Data Firehose with an HTTP endpoint destination.- CloudWatch Logs
- CloudWatch Metrics
PrerequisitesPolicy (replace the bucket name if different):Trust policy for Firehose:
- Permissions to create IAM roles/policies, Firehose delivery streams, subscription filters, and (optionally) S3 buckets
- Phoebe ingestion key
- CloudWatch Log Groups to stream
1
Create (optional) S3 bucket for failures
Use this bucket for failed deliveries to aid troubleshooting.Example name:
phoebe-log-stream-failures2
Create a minimal-scope IAM role for Firehose
Firehose can auto-create a role, but a custom role limits permissions and improves security.
3
Create a Firehose delivery stream (HTTP endpoint)
- Source: Direct PUT
- Destination: HTTP Endpoint
- HTTP endpoint URL:
https://ingest.phoebe.ai/aws/firehose/logs - Access key: your Phoebe ingestion key
- Content encoding: GZIP
- Retry duration: ~300 seconds (tune as needed)
- Mode: Failed data only
- Bucket: the one you created for failures
- Size: 1–5 MB (smaller = lower latency)
- Interval: 60–300 s
- Choose the IAM role you created for Firehose.
4
Allow CloudWatch Logs to put records into Firehose
Create an IAM role for logs.amazonaws.com to call Trust policy (CloudWatch Logs):
firehose:PutRecord* on your stream.Policy (replace REGION, ACCOUNT_ID, and stream name):5
Create CloudWatch Logs subscription filter(s)
For each Log Group you want to stream:
- Destination: Amazon Data Firehose
- Delivery stream: your Firehose stream
- Role: the CloudWatch-to-Firehose role
- Filter pattern: empty for all logs (or set a pattern to restrict)
6
Verify delivery
Generate a test event:
- In Firehose → your stream → Monitoring, verify successful deliveries increase and failures remain zero.
- Check the failure S3 bucket is empty (or inspect objects for errors).
API access
- Create IAM Role/User with
CloudWatchReadOnlyAccesspolicy - Generate access key and secret
- Enter credentials in the Integrations UI