get_logstore

Updated at:

Retrieves information about a specified LogStore.

Request syntax

aliyunlog log get_logstore --project_name=<value> --logstore_name=<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

The following table describes the required and specific parameters for this command.

Parameter Name

Data type

Required

Example value

Description

--project_name

String

Yes

aliyun-test-project

The project name.

--logstore_name

String

Yes

moni-nginx

The Logstore name.

For information about the global parameters for this command, see Global parameters.

Examples

  • Request example

    Retrieves information about the `moni-nginx` Logstore in the default account.

    aliyunlog log get_logstore --project_name="aliyun-test-project" --logstore_name="moni-nginx"
  • Response example

    {
      "appendMeta": true,
      "archiveSeconds": 0,
      "autoSplit": true,
      "createTime": 1619493098,
      "enable_tracking": false,
      "lastModifyTime": 1620814389,
      "logstoreName": "moni-nginx",
      "maxSplitShard": 64,
      "resourceQuota": {
        "storage": {
          "preserved": -1,
          "used": 0
        }
      },
      "shardCount": 2,
      "telemetryType": "",
      "ttl": 30
    }

Error codes

If an error message is returned, see Error codes.

API reference

GetLogStore