list_logtail_config

Updated at:

Use the list_logtail_config command to query all Logtail configurations in a specified project.

Request syntax

aliyunlog log list_logtail_config --project_name=<value> [--offset=<value>] [--size=<value>] [--logstore=<value>] [--config=<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

This command includes the following required and operation-specific parameters.

Parameter

Data type

Required

Example

Description

--project_name

String

Yes

aliyun-test-project

The name of the project.

--offset

Integer

No

0

The line from which to start reading the query results. The default value is 0.

--size

Integer

No

10

The number of rows to return on each page for a paged query. The maximum value is 500.

--logstore

String

No

logstore-a

The name of the Logstore.

--config

String

No

config_name

The name of the Logtail configuration.

For information about global parameters, see Global parameters.

Examples

  • Request example

    Query all Logtail configurations in logstore-a using the default account.

    aliyunlog log list_logtail_config --project_name="aliyun-test-project" --logstore="logstore-a"
  • Response example

    {
      "configs": [
        "windows_event_log"
      ],
      "count": 1,
      "total": 1
    }

Error codes

If an error message is returned, refer to the error codes for the corresponding API operation. For more information, see Error codes.

API reference

ListConfig