Webui option to move logs from old AMP to new AMP || AS-26689|| Aptech
Review Request #1201 — Created Nov. 28, 2025 and submitted — Latest diff uploaded
| Information | |
|---|---|
| apoorva.sn | |
| AMP | |
| amp_3_7_2 | |
| AE-2213 | |
| Reviewers | |
| mmiriam, ngurunathan, pmurugaiyan, pradeep, shuinvy | |
Problem
Move logs from old AMP to New AMP
Solution
Implemented the logic for
Exporting logs -
-
Primary Storage
-
Secondary Storage
-
Custom where we can specify the ip, username passwd for another machine and also the path
Importing logs-
-
Remote machine where we can specify the path as Primary, Secondary or Custom where we can specify the ip, username passwd for another machine and also the path
-
Importing indexes with a specific date range also
Import/Export status
Design Document: https://arraynetworks.atlassian.net/wiki/spaces/APM/pages/3161292801/Log+Migration+Between+AMP+Platforms
Snapshot Export
Export on Primary
POST https://192.168.162.162:8888/snapshot/export
{
"location": "primary"
}Response:
{
"message": "Snapshot export completed successfully"
}Export on Secondary
{
"location": "secondary"
}Response:
{
"message": "Snapshot export completed successfully"
}Export on another machine
{
"location": "custom", // primary | secondary | custom
"ip": "192.168.162.161", // required only for custom
"username": "root", // required only for custom
"password": "certeon", // required only for custom
"path": "/tmp/snapshots" // required only for custom
}Response:
{
"message": "Snapshot export completed successfully"
}Export Status
GET https://192.168.162.162:8888/snapshot/export/status
{
"status": "In Progress"
}{
"status": "Successful"
}{
"status": "Error"
}Snapshot Import
Import from another AMP
POST https://192.168.162.141:8888/snapshot/import
Request
{
"location": "primary",
"ip": "192.168.162.162",
"username": "test",
"password": "fwF6dDSnUI"
}
Response
{
"message": "Snapshot import completed successfully"
}Import from Remote machine
POST https://192.168.162.141:8888/snapshot/import
Request
{
"location": "custom",
"ip": "192.168.162.161",
"username": "root",
"password": "certeon",
"path": "/tmp/snapshots"
}Response
{
"message": "Snapshot import completed successfully"
}Import with date range
POST https://192.168.162.141:8888/snapshot/import
Request:
{
"ip": "192.168.162.162",
"username": "test",
"password": "fwF6dDSnUI",
"start_date": "2025-01-01",
"end_date": "2025-02-15"
}{
"message": "Snapshot import completed successfully"
}Request:
{
"ip": "192.168.162.162",
"username": "test",
"password": "fwF6dDSnUI",
"end_date": "2025-02-15"
}Response:
{
"error": "End date requires start date"
}Request:
{
"ip": "192.168.162.162",
"username": "test",
"password": "fwF6dDSnUI",
"start_date": "2025-01-01"
}Response:
{
"message": "Snapshot import completed successfully"
}Import Status
GET https://192.168.162.141:8888/snapshot/import/status
{
"status": "In Progress"
}{
"status": "Successful"
}{
"status": "Error"
}
