# AWS EC2

Host logs, traces and metrics from the Collector.

Logs Traces Metrics Available

[Open the Connect card in Epok](https://app.epok.cloud/#/connect) [Full setup guide](https://epok.cloud/docs/running-on-aws#ec2)

## What you get

Logs, traces and metrics, arriving through OpenTelemetry Collector on the instance.

## Set it up

1. Create an ingest key in Epok: Settings, then API keys.
2. Install the OpenTelemetry Collector (contrib) package on the instance.
3. Write the Collector configuration from the setup page, with your log paths and the key in the Collector's environment, then restart the Collector.
4. Search for the instance's logs in Explore and its host metrics in Metrics.

The commands and configuration for each step are on the [setup guide](https://epok.cloud/docs/running-on-aws#ec2).

## What was tested

- End to end with real cloud resources, sending to a local Epok stack rather than the hosted service: 3 runs.
- No run against the hosted service is recorded yet.

## What you see in Epok

- Explore and Live tail: search, patterns and new errors.
- Services and Traces: request rate, errors and latency per service and endpoint, and each trace's span tree.
- Metrics: browse, chart and alert on every series by its labels.

## Troubleshooting

- Plain-text lines are stored as level=info unless the configuration parses the level from the line. Keep the parser step from the setup page.
- The Collector reads the instance ID, type and region from instance metadata, so the instance needs no IAM role for that.

## More in Cloud & Kubernetes

[Container logs](https://epok.cloud/integrations/k8s-container-logs) [Kubernetes events](https://epok.cloud/integrations/k8s-events) [Node, pod and cluster metrics](https://epok.cloud/integrations/k8s-metrics) [Traces from your pods](https://epok.cloud/integrations/k8s-traces) [CloudWatch Logs](https://epok.cloud/integrations/aws-cloudwatch-logs) [CloudWatch metrics](https://epok.cloud/integrations/aws-cloudwatch-metrics) [Lambda](https://epok.cloud/integrations/aws-lambda) [ECS on Fargate](https://epok.cloud/integrations/aws-ecs-fargate) [Compute Engine](https://epok.cloud/integrations/gcp-compute-engine) [Cloud Logging](https://epok.cloud/integrations/gcp-cloud-logging) [Cloud Run](https://epok.cloud/integrations/gcp-cloud-run)
