- 新しい順
- 投票が多い順
- コメントが多い順
Hello, thank you for reaching out!
At this time, it is the expected behavior for logs exported from CloudWatch to S3 using the CreateExportTask API to result in unordered log files.
As a result, it would be necessary to manually sort and combine the files using a script or, for example, you can use the below commands while using standard Linux tooling:
Example 1:
sort -k1 "000000 (1)" > 000000_sorted.txt
Example 2:
find . -exec zcat {} + | sed -r 's/^[0-9]+/\x0&/' | sort -z
Replace the '.' with the .gz file name that was downloaded from the S3 export and you can also pipe with another stdout command to another file so that you can save the sorted output
I can confirm that there is an open feature request to allow for ordered results when using CreateExportTask. While I am unable to comment on if/when this feature may get released, you can keep an eye on our What's New and Blog pages for any new feature announcements!
関連するコンテンツ
- AWS公式更新しました 2年前
Thanks for the kind explanation! :D