---
title: Log Collection on AWS Fargate
url: https://www.tines.com/docs/self-hosted/troubleshooting/troubleshooting-aws-fargate-deployments/log-collection-on-aws-fargate/
updated: 2022-11-23T16:21:44+00:00
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/llms.txt) › [Self-Hosted](https://www.tines.com/llm/docs/self-hosted.md) › [Troubleshooting](https://www.tines.com/llm/docs/self-hosted/troubleshooting.md) › [Troubleshooting AWS Fargate](https://www.tines.com/llm/docs/self-hosted/troubleshooting/troubleshooting-aws-fargate-deployments.md)*

# Log Collection on AWS Fargate

*[View on tines.com](https://www.tines.com/docs/self-hosted/troubleshooting/troubleshooting-aws-fargate-deployments/log-collection-on-aws-fargate/)*

To collect the AWS CloudWatch logs for a Tines service, perform the following steps:

First, get the list of log groups with the following command:

```
aws logs describe-log-groups
```

Next, get the list of log streams with the following command:

```
aws logs describe-log-streams
```

Then run the following command with the desired log group name and the most recent log stream for that group:

```
aws logs get-log-events \

   --log-group-name (log group name) --log-stream-name (log stream name) \

   --output text > tines-service-log.log
```
