Create a Logtail pipeline configuration
Updated at:
Run a CLI command to create a Logtail pipeline configuration. A pipeline configuration defines what to collect (inputs), how to parse the data (processors), and where to send the data (flushers).
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 and a Logstore are created. For more information, see Create a project and Create a Logstore.
Syntax
aliyun sls create-logtail-pipeline-config --project=<value> --config-name=<value> --inputs=<value> [--processors=<value>] --flushers=<value> [--log-sample=<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 | Yes | json-log-config | The name of the configuration. |
| --inputs | String | Yes | See the example section | The input plugin configuration in JSON format. |
| --processors | String | No | See the example section | The processor plugin configuration in JSON format. Specify this parameter multiple times to add multiple processors. |
| --flushers | String | Yes | See the example section | The output plugin configuration in JSON format. |
| --log-sample | String | No | See the example section | A sample log entry. |
Is this page helpful?