Canonical: https://weaveos.com/reference/amazon-cloudwatch/filter-cloudwatch-log-events

1. [Software capabilities](https://weaveos.com/reference)
2. /[Amazon CloudWatch](https://weaveos.com/reference/amazon-cloudwatch)
3. /Find matching events in a CloudWatch log group

[![](https://weaveos.com/reference/logos/amazon-cloudwatch.svg)Amazon CloudWatch](https://weaveos.com/reference/amazon-cloudwatch)

# Find matching events in a CloudWatch log group

Use FilterLogEvents for a bounded, paginated log search. Use aws logs tail for a quick look at recent events or to follow a running stream.

Documentation reviewed November 27, 2026 · 2 methods with sources

## Ways to do it

1. [1API: CloudWatch Logs FilterLogEvents](https://weaveos.com/reference/amazon-cloudwatch/filter-cloudwatch-log-events#method-1)
2. [2CLI: aws logs tail](https://weaveos.com/reference/amazon-cloudwatch/filter-cloudwatch-log-events#method-2)

API

### CloudWatch Logs FilterLogEvents

Filter a log group by time range, filter pattern, or a stream name or prefix.

[Read source: AWS FilterLogEvents API reference](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_FilterLogEvents.html)

- Requirements

  AWS credentials with logs:FilterLogEvents for the log group. Provide either logGroupName or logGroupIdentifier.

- Limitations

  Each response can hold up to 1 MB or 10,000 events. Even an empty page can have a nextToken. Keep paging until the token is absent.

CLI

### aws logs tail

Print recent matching events. Add --follow to keep polling, or use --filter-pattern to narrow the output.

[Read source: AWS CLI logs tail command](https://docs.aws.amazon.com/cli/latest/reference/logs/tail.html)

- Requirements

  An AWS CLI profile in the log group’s Region with logs:FilterLogEvents and the log group name.

- Limitations

  The CLI defaults to the last 10 minutes and does not guarantee exact timestamp order across streams.

Example shell

Copy

```
aws logs tail /aws/lambda/example --since 30m --filter-pattern 'ERROR'
```

## More from Amazon CloudWatch

[View all 1 Amazon CloudWatch tasks](https://weaveos.com/reference/amazon-cloudwatch)

## The same task in other apps

- [![](https://weaveos.com/reference/logos/google-calendar.svg)Google Calendar](https://weaveos.com/reference/google-calendar)

  ### [Find events on a Google Calendar](https://weaveos.com/reference/google-calendar/find-events-on-a-calendar)

  Use events.list to find events by date or text on a calendar your application can access. The Calendar website offers an interactive search with date and calendar filters.

  API, Interface
