Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS CloudWatch Logs Insights - export full query result?

Tags:

I have a CloudWatch Logs Insights query, which shows "7000 records matched", but when I try Actions -> Download query results (CSV), only 1000 records are exported (same as shown in the console). I cannot find any way to export the "full" query results. Am I missing anything?

like image 786
lznt Avatar asked Aug 08 '19 16:08

lznt


1 Answers

Adding

| limit 7000 

to the end of the query fixed the issue

The max is 10000 according to https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html#API_StartQuery_RequestSyntax, so if my query has more than 10000 records, there seems to be no way to get the complete data.

like image 141
lznt Avatar answered Sep 21 '22 08:09

lznt