Query Logtail pipeline configuration details

Updated at:

Run a CLI command to query the details of a specified Logtail pipeline configuration.

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 get-logtail-pipeline-config --project=<value> --config-name=<value>

Parameters

The following table describes the required and command-specific parameters.

ParameterTypeRequiredExampleDescription
--projectStringYesaliyun-test-projectThe name of the project.
--config-nameStringYesjson-log-configThe name of the configuration.

For information about global parameters, see Global parameters.

Example

aliyun sls get-logtail-pipeline-config --project="aliyun-test-project" --config-name="json-log-config"
{
  "configName": "json-log-config",
  "inputs": [
    {
      "Type": "input_file",
      "FilePaths": ["/app/**/output.json"],
      "EnableContainerDiscovery": false,
      "MaxDirSearchDepth": 1,
      "FileEncoding": "utf8"
    }
  ],
  "processors": [
    {
      "Type": "processor_parse_json_native",
      "SourceKey": "content"
    }
  ],
  "flushers": [
    {
      "Type": "flusher_sls",
      "Logstore": "aliyun-test-logstore",
      "TelemetryType": "logs",
      "Region": "cn-hangzhou",
      "Endpoint": "cn-hangzhou-intranet.log.aliyuncs.com"
    }
  ]
}