copy_logstore
Copies configurations from a source Logstore to a destination Logstore.
What gets copied
This command copies the following configurations to a destination Logstore. Data is not copied.
-
Logstores
-
Indexes
-
Logtail configurations
Request syntax
aliyunlog log copy_logstore --from_project=<value> --from_logstore=<value> --to_logstore=<value> [--to_project=<value>] [--to_client=<value>] [--to_region_endpoint=<value>] [--access-id=<value>] [--access-key=<value>] [--sts-token=<value>] [--region-endpoint=<value>] [--client-name=<value>] [--jmes-filter=<value>] [--format-output=<value>] [--decode-output=<value>]
Request parameters
Command-specific parameters:
|
Parameter Name |
Type |
Required |
Example value |
Description |
|
--from_project |
String |
Yes |
project-a |
The name of the source project. |
|
--from_logstore |
String |
Yes |
logstore-a |
The name of the source Logstore. |
|
--to_logstore |
String |
Yes |
logstore-b |
The name of the destination Logstore. |
|
--to_project |
String |
No |
project-b |
The name of the destination project. |
|
--to_client |
String |
No |
test |
The account authorized to manage the destination project. Configure the CLI. |
This command also supports Global parameters.
Examples
-
Request example
Copy logstore-a from the default account to logstore-b in the test account.
aliyunlog log copy_logstore --from_project="project-a" --from_logstore="logstore-a" --to_logstore="logstore-b" --to_project="project-b " --to_client="test" -
Response example
No output on success.