The Logtail configuration generator automatically builds AliyunPipelineConfig CRD definitions and API parameter scripts for Logtail collection tasks, eliminating manual configuration.
Procedure
Log on to the Simple Log Service console.
In the Projects section, click the one you want.

-
In the left-side navigation pane, click .
-
On the CRD Generator page, select a collection scenario and configure Logtail in the left panel. The Preview Configurations panel on the right then generates a YAML script for the AliyunPipelineConfig CRD and a JSON object for API calls.
-
Collection scenario: The supported scenarios include Text Logs for hosts, Kubernetes - File, and stdout and stderr - New/Old Version.
-
Logtail configuration: Click Import Other Configuration to import an existing configuration from the Import Logtail Configuration page, or create a new one.
-
Preview Configurations:
-
YAML: Generates a ready-to-use script for creating a Logtail configuration with an AliyunPipelineConfig CRD. -
JSON: Generates a JSON object for the CreateLogtailPipelineConfig API operation. Thekey-valuepairs map to theparameters and valuesof the API call.
-
The left panel includes Global Configurations (Project Name, Logstore Name, Configuration Name, log topic type, and advanced parameters) and Input Configurations. For text logs, select a Logtail deployment mode (DaemonSet or sidecar) and set the file path.
-
-
To use Logtail SPL to parse logs in a new configuration, first add a Log Sample. When you Preview the processing results, verify that the correct Project Name and Logstore Name are set.
On the Processing Configurations page, set Processing Mode to SPL, enter a parsing statement such as
* | parse-json contentin the SPL Statement editor, and click Preview. -
Copy the generated YAML or JSON script and create a Logtail configuration for your scenario.
> CRD Generator