List Logtail pipeline configurations
Updated at:
Run a CLI command to list all Logtail pipeline configurations in a specified project.
Prerequisites
Before you run this command, make sure that the following prerequisites are met:
Simple Log Service (SLS) is activated. For more information, see Getting started with SLS.
The SLS CLI is installed and configured. For more information, see Install the CLI and Configure the CLI.
An SLS project is created. For more information, see Create a project.
Syntax
aliyun sls list-logtail-pipeline-config --project=<value> [--config-name=<value>] [--offset=<value>] [--size=<value>]Parameters
The following table describes the required and command-specific parameters.
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| --project | String | Yes | aliyun-test-project | The name of the project. |
| --config-name | String | No | json | The name of a configuration. This parameter is used for fuzzy matching. |
| --offset | Integer | No | 0 | The pagination offset. |
| --size | Integer | No | 100 | The number of entries per page. |
For information about global parameters, see Global parameters.
Examples
List all pipeline configurations
Command example
aliyun sls list-logtail-pipeline-config --project="aliyun-test-project"Return example
{ "configs": [ { "configName": "json-log-config", "logSample": "{\"status\": 200}" } ], "count": 1, "total": 1 }
Filter pipeline configurations by name
Query pipeline configurations whose names contain "json".
Command example
aliyun sls list-logtail-pipeline-config --project="aliyun-test-project" --config-name="json"Return example
{ "configs": [ { "configName": "json-log-config", "logSample": "{\"status\": 200}" } ], "count": 1, "total": 1 }
Is this page helpful?