Skip to content

Commit

Permalink
Update SPECIFICATION.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ford-at-aws authored Feb 8, 2024
1 parent 0e2c6da commit cdecb9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflows/cloudwatch_logs_large_query/SPECIFICATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Start the query and wait for it to "finish". Store the `results`. If the count o

### Recursive queries

If the result count from the previous step is 10000 (or the configured LIMIT), it is very likely that there are more results. The example should do a binary search of the remaining logs. To do this, get the date of the last log (earliest or latest, depending on sort order). Use that date as the start date of a new date range. The end date can remain the same.
If the result count from the previous step is 10000 (or the configured LIMIT), it is very likely that there are more results. **The example must do a binary search of the remaining logs**. To do this, get the date of the last log (earliest or latest, depending on sort order). Use that date as the start date of a new date range. The end date can remain the same.

Split that date range in half, resulting in two new date ranges. Call your query function twice; once for each new date range.

Expand Down

0 comments on commit cdecb9d

Please sign in to comment.