Structuring Templates
LTS supports two types of structuring templates: system templates and custom templates.
System Templates
System templates: ELB, VPC, CTS, APIG, DCS (audit logs), Tomcat, Nginx, GAUSSV5 audit logs, DDS (audit, error, and slow logs), CFW (access control, attack, and traffic logs), MySQL (error and slow logs), PostgreSQL (error and slow logs), SQL Server error logs, GAUSSDB_REDIS slow logs, CDN, SMN, GaussDB_MySQL (error and slow logs), ER, MySQL audit logs, GaussDB for Cassandra slow logs, GaussDB for Mongo slow and error logs
- Click System template and select a template. A sample log event is displayed for each template.
- When you select a template, the log parsing result is displayed in the Template Details area. Click Save.
During log structuring, if a system template is used, the time in the system template is the customized log time.
Custom Templates
- When you extract fields using methods of regular expression, JSON, delimiter, or Nginx, click Save as Template in the lower left corner. In the displayed dialog box, enter the template name and click OK. The template will be displayed in the custom template list.
- Create a custom template under the Structuring Template option.
Select Custom template and click Create Template. Enter a template name, select Regular Expressions, JSON, Delimiter, or Nginx, configure the template, and click Save. The template will be displayed in the custom template list.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot