- Newest
- Most votes
- Most comments
To export network connection data collected from AWS Application Discovery Service (ADS) into CSV format using the CLI or API, you can follow these steps:
-
Use the AWS CLI or API to call the "StartExportTask" operation of the Application Discovery Service.
-
When calling StartExportTask, you'll need to specify several parameters:
- The export data format (CSV in this case)
- Filters to specify the data you want to export (in this case, network connection data)
- The destination S3 bucket where the exported data will be stored
- Time range for the data export (using startTime and endTime parameters)
- Any other relevant preferences or filters
-
Here's an example of how the CLI command might look:
aws discovery start-export-task --export-data-format CSV --filters '{"agentIds": ["agent-id-1", "agent-id-2"]}' --start-time 1234567890 --end-time 2345678901 --s3-bucket-name your-bucket-name
-
This command will initiate the export task and return an export ID.
-
You can then use the "DescribeExportTasks" operation to check the status of your export task using the export ID.
-
Once the export is complete, you'll find the CSV files in your specified S3 bucket. These will include files detailing network connections, such as:
- {account_id}_destinationProcessConnection.csv (for inbound connections)
- {account_id}_sourceProcessConnection.csv (for outbound connections)
Remember that there are some limitations to keep in mind:
- You can export up to 72 hours of detailed data collected by the identified Application Discovery Agent.
- There's a limit of five concurrently running exports of detailed agent data.
- You're limited to two exports of detailed agent data per day.
By following these steps, you should be able to export the network connection data collected by ADS into CSV format using the CLI or API.
Sources
StartExportTask - AWS Application Discovery Service
Using AWS Migration Hub to export server data - AWS Application Discovery Service
answered 2 years ago
Relevant content
asked a year ago
asked 4 years ago
- AWS OFFICIALUpdated 9 months ago
