{"tool":"aws","tool_display":"Aws","intent":"export-logs-to-s3","intent_display":"export logs to s3","title":"Aws Command: export logs to s3","command_string":"aws logs create-export-task --log-group-name <log_group_name> --from <start_time> --to <end_time> --destination <s3_bucket_name>","raw_command_string":"aws logs create-export-task --log-group-name {{log_group_name}} --from {{start_time}} --to {{end_time}} --destination {{s3_bucket_name}}","description":"Exact CLI syntax to export logs to s3 using Aws.","usage_scenario":"During compliance audits requiring log data retention in S3.","scenario_context":"Ensure accurate log retention for compliance and operational analysis by utilizing AWS S3.","simulated_output":"$ aws logs create-export-task --log-group-name my-log-group --from 1609459200 --to 1609545600 --destination my-s3-bucket\\n\\n{\\n    \"taskId\": \"12345678-90ab-cdef-1234-567890abcdef\"\\n}","how_to_steps":["Run the command: aws logs create-export-task --log-group-name my-log-group --from 1609459200 --to 1609545600 --destination my-s3-bucket","Check the status with: aws logs describe-export-tasks --task-id 12345678-90ab-cdef-1234-567890abcdef"],"inferred_category":"Cloud Infrastructure","canonical_url":"https://www.syntaxstandard.com/aws/export-logs-to-s3"}