published on Thursday, Sep 10, 2026 by opentelekomcloud
published on Thursday, Sep 10, 2026 by opentelekomcloud
Up-to-date reference of API arguments for LTS log Structuring templates you can get at documentation portal
Manages an LTS structuring configuration resource within T-Cloud Public.
Example Usage
Creating with system template
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const logGroupId = config.requireObject<any>("logGroupId");
const logStreamId = config.requireObject<any>("logStreamId");
const test = new opentelekomcloud.LtsStructuringTemplateV3("test", {
logGroupId: logGroupId,
logStreamId: logStreamId,
templateName: "CTS",
templateType: "built_in",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
log_group_id = config.require_object("logGroupId")
log_stream_id = config.require_object("logStreamId")
test = opentelekomcloud.LtsStructuringTemplateV3("test",
log_group_id=log_group_id,
log_stream_id=log_stream_id,
template_name="CTS",
template_type="built_in")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
logGroupId := cfg.RequireObject("logGroupId")
logStreamId := cfg.RequireObject("logStreamId")
_, err := opentelekomcloud.NewLtsStructuringTemplateV3(ctx, "test", &opentelekomcloud.LtsStructuringTemplateV3Args{
LogGroupId: pulumi.Any(logGroupId),
LogStreamId: pulumi.Any(logStreamId),
TemplateName: pulumi.String("CTS"),
TemplateType: pulumi.String("built_in"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var logGroupId = config.RequireObject<dynamic>("logGroupId");
var logStreamId = config.RequireObject<dynamic>("logStreamId");
var test = new Opentelekomcloud.LtsStructuringTemplateV3("test", new()
{
LogGroupId = logGroupId,
LogStreamId = logStreamId,
TemplateName = "CTS",
TemplateType = "built_in",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.LtsStructuringTemplateV3;
import com.pulumi.opentelekomcloud.LtsStructuringTemplateV3Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var logGroupId = config.get("logGroupId");
final var logStreamId = config.get("logStreamId");
var test = new LtsStructuringTemplateV3("test", LtsStructuringTemplateV3Args.builder()
.logGroupId(logGroupId)
.logStreamId(logStreamId)
.templateName("CTS")
.templateType("built_in")
.build());
}
}
configuration:
logGroupId:
type: dynamic
logStreamId:
type: dynamic
resources:
test:
type: opentelekomcloud:LtsStructuringTemplateV3
properties:
logGroupId: ${logGroupId}
logStreamId: ${logStreamId}
templateName: CTS
templateType: built_in
Example coming soon!
Creating with custom template
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const logGroupId = config.requireObject<any>("logGroupId");
const logStreamId = config.requireObject<any>("logStreamId");
const templateName = config.requireObject<any>("templateName");
const templateId = config.requireObject<any>("templateId");
const test = new opentelekomcloud.LtsStructuringTemplateV3("test", {
logGroupId: logGroupId,
logStreamId: logStreamId,
templateName: templateName,
templateId: templateId,
templateType: "custom",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
log_group_id = config.require_object("logGroupId")
log_stream_id = config.require_object("logStreamId")
template_name = config.require_object("templateName")
template_id = config.require_object("templateId")
test = opentelekomcloud.LtsStructuringTemplateV3("test",
log_group_id=log_group_id,
log_stream_id=log_stream_id,
template_name=template_name,
template_id=template_id,
template_type="custom")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
logGroupId := cfg.RequireObject("logGroupId")
logStreamId := cfg.RequireObject("logStreamId")
templateName := cfg.RequireObject("templateName")
templateId := cfg.RequireObject("templateId")
_, err := opentelekomcloud.NewLtsStructuringTemplateV3(ctx, "test", &opentelekomcloud.LtsStructuringTemplateV3Args{
LogGroupId: pulumi.Any(logGroupId),
LogStreamId: pulumi.Any(logStreamId),
TemplateName: pulumi.Any(templateName),
TemplateId: pulumi.Any(templateId),
TemplateType: pulumi.String("custom"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var logGroupId = config.RequireObject<dynamic>("logGroupId");
var logStreamId = config.RequireObject<dynamic>("logStreamId");
var templateName = config.RequireObject<dynamic>("templateName");
var templateId = config.RequireObject<dynamic>("templateId");
var test = new Opentelekomcloud.LtsStructuringTemplateV3("test", new()
{
LogGroupId = logGroupId,
LogStreamId = logStreamId,
TemplateName = templateName,
TemplateId = templateId,
TemplateType = "custom",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.LtsStructuringTemplateV3;
import com.pulumi.opentelekomcloud.LtsStructuringTemplateV3Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var logGroupId = config.get("logGroupId");
final var logStreamId = config.get("logStreamId");
final var templateName = config.get("templateName");
final var templateId = config.get("templateId");
var test = new LtsStructuringTemplateV3("test", LtsStructuringTemplateV3Args.builder()
.logGroupId(logGroupId)
.logStreamId(logStreamId)
.templateName(templateName)
.templateId(templateId)
.templateType("custom")
.build());
}
}
configuration:
logGroupId:
type: dynamic
logStreamId:
type: dynamic
templateName:
type: dynamic
templateId:
type: dynamic
resources:
test:
type: opentelekomcloud:LtsStructuringTemplateV3
properties:
logGroupId: ${logGroupId}
logStreamId: ${logStreamId}
templateName: ${templateName}
templateId: ${templateId}
templateType: custom
Example coming soon!
Create LtsStructuringTemplateV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LtsStructuringTemplateV3(name: string, args: LtsStructuringTemplateV3Args, opts?: CustomResourceOptions);@overload
def LtsStructuringTemplateV3(resource_name: str,
args: LtsStructuringTemplateV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def LtsStructuringTemplateV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
log_group_id: Optional[str] = None,
log_stream_id: Optional[str] = None,
template_name: Optional[str] = None,
template_type: Optional[str] = None,
demo_fields: Optional[Sequence[LtsStructuringTemplateV3DemoFieldArgs]] = None,
lts_structuring_template_v3_id: Optional[str] = None,
quick_analysis: Optional[bool] = None,
tag_fields: Optional[Sequence[LtsStructuringTemplateV3TagFieldArgs]] = None,
template_id: Optional[str] = None)func NewLtsStructuringTemplateV3(ctx *Context, name string, args LtsStructuringTemplateV3Args, opts ...ResourceOption) (*LtsStructuringTemplateV3, error)public LtsStructuringTemplateV3(string name, LtsStructuringTemplateV3Args args, CustomResourceOptions? opts = null)
public LtsStructuringTemplateV3(String name, LtsStructuringTemplateV3Args args)
public LtsStructuringTemplateV3(String name, LtsStructuringTemplateV3Args args, CustomResourceOptions options)
type: opentelekomcloud:LtsStructuringTemplateV3
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "opentelekomcloud_lts_structuring_template_v3" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args LtsStructuringTemplateV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LtsStructuringTemplateV3Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LtsStructuringTemplateV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LtsStructuringTemplateV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LtsStructuringTemplateV3Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ltsStructuringTemplateV3Resource = new Opentelekomcloud.LtsStructuringTemplateV3("ltsStructuringTemplateV3Resource", new()
{
LogGroupId = "string",
LogStreamId = "string",
TemplateName = "string",
TemplateType = "string",
DemoFields = new[]
{
new Opentelekomcloud.Inputs.LtsStructuringTemplateV3DemoFieldArgs
{
FieldName = "string",
IsAnalysis = false,
},
},
LtsStructuringTemplateV3Id = "string",
QuickAnalysis = false,
TagFields = new[]
{
new Opentelekomcloud.Inputs.LtsStructuringTemplateV3TagFieldArgs
{
FieldName = "string",
IsAnalysis = false,
},
},
TemplateId = "string",
});
example, err := opentelekomcloud.NewLtsStructuringTemplateV3(ctx, "ltsStructuringTemplateV3Resource", &opentelekomcloud.LtsStructuringTemplateV3Args{
LogGroupId: pulumi.String("string"),
LogStreamId: pulumi.String("string"),
TemplateName: pulumi.String("string"),
TemplateType: pulumi.String("string"),
DemoFields: opentelekomcloud.LtsStructuringTemplateV3DemoFieldArray{
&opentelekomcloud.LtsStructuringTemplateV3DemoFieldArgs{
FieldName: pulumi.String("string"),
IsAnalysis: pulumi.Bool(false),
},
},
LtsStructuringTemplateV3Id: pulumi.String("string"),
QuickAnalysis: pulumi.Bool(false),
TagFields: opentelekomcloud.LtsStructuringTemplateV3TagFieldArray{
&opentelekomcloud.LtsStructuringTemplateV3TagFieldArgs{
FieldName: pulumi.String("string"),
IsAnalysis: pulumi.Bool(false),
},
},
TemplateId: pulumi.String("string"),
})
resource "opentelekomcloud_lts_structuring_template_v3" "ltsStructuringTemplateV3Resource" {
lifecycle {
create_before_destroy = true
}
log_group_id = "string"
log_stream_id = "string"
template_name = "string"
template_type = "string"
demo_fields {
field_name = "string"
is_analysis = false
}
lts_structuring_template_v3_id = "string"
quick_analysis = false
tag_fields {
field_name = "string"
is_analysis = false
}
template_id = "string"
}
var ltsStructuringTemplateV3Resource = new LtsStructuringTemplateV3("ltsStructuringTemplateV3Resource", LtsStructuringTemplateV3Args.builder()
.logGroupId("string")
.logStreamId("string")
.templateName("string")
.templateType("string")
.demoFields(LtsStructuringTemplateV3DemoFieldArgs.builder()
.fieldName("string")
.isAnalysis(false)
.build())
.ltsStructuringTemplateV3Id("string")
.quickAnalysis(false)
.tagFields(LtsStructuringTemplateV3TagFieldArgs.builder()
.fieldName("string")
.isAnalysis(false)
.build())
.templateId("string")
.build());
lts_structuring_template_v3_resource = opentelekomcloud.LtsStructuringTemplateV3("ltsStructuringTemplateV3Resource",
log_group_id="string",
log_stream_id="string",
template_name="string",
template_type="string",
demo_fields=[{
"field_name": "string",
"is_analysis": False,
}],
lts_structuring_template_v3_id="string",
quick_analysis=False,
tag_fields=[{
"field_name": "string",
"is_analysis": False,
}],
template_id="string")
const ltsStructuringTemplateV3Resource = new opentelekomcloud.LtsStructuringTemplateV3("ltsStructuringTemplateV3Resource", {
logGroupId: "string",
logStreamId: "string",
templateName: "string",
templateType: "string",
demoFields: [{
fieldName: "string",
isAnalysis: false,
}],
ltsStructuringTemplateV3Id: "string",
quickAnalysis: false,
tagFields: [{
fieldName: "string",
isAnalysis: false,
}],
templateId: "string",
});
type: opentelekomcloud:LtsStructuringTemplateV3
properties:
demoFields:
- fieldName: string
isAnalysis: false
logGroupId: string
logStreamId: string
ltsStructuringTemplateV3Id: string
quickAnalysis: false
tagFields:
- fieldName: string
isAnalysis: false
templateId: string
templateName: string
templateType: string
LtsStructuringTemplateV3 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LtsStructuringTemplateV3 resource accepts the following input properties:
- Log
Group stringId - Specifies the log group ID. Changing this parameter will create a new resource.
- Log
Stream stringId - Specifies the log stream ID. Changing this parameter will create a new resource.
- Template
Name string - Specifies the template name. When
template_typeis set to built_in, valid values are:- ELB
- VPC
- CTS
- APIG
- DCS_AUDIT: DCS audit log.
- TOMCAT
- NGINX
- GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
- DDS_AUDIT: DDS audit log.
- MONGODB_ERROR: DDS error log.
- MONGODB_SLOW: DDS slow log.
- CFW_ACCESS: CFW access control log.
- CFW_ATTACK: CFW attack log.
- CFW_FLOW: CFW traffic log.
- MYSQL_ERROR: MYSQL error log.
- MYSQL_SLOW: MYSQL slow log:
- POSTGRESQL_SLOW: POSTGRESQL slow log.
- POSTGRESQL_ERROR: POSTGRESQL error log.
- SQLSERVER_ERROR: SQLSERVER error log.
- GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
- CDN
- SMN
- GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
- GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
- ER: ER Enterprise Router.
- MYSQL_AUDIT: MYSQL audit log.
- GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
- GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
- GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
- WAF_ACCESS: WAF access log.
- WAF_ATTACK: WAF attack log.
- DMS_REBALANCED:DMS rebalancing log.
- CCE_AUDIT: CCE audit log.
- CCE_EVENT: CCE event log.
- GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
- Template
Type string - Specifies the type of the template. The valid values are as follows:
- built_in: System templates.
- custom: Custom templates.
- Demo
Fields List<LtsStructuring Template V3Demo Field> - Specifies the example fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The demo_fields structure is documented below. - Lts
Structuring stringTemplate V3Id - The resource ID.
- Quick
Analysis bool Specifies whether to enable
demo_fieldsandtag_fieldsquick analysis.- If this parameter is set to true, quick analysis is enabled for all
demo_fieldsandtag_fields. - If this parameter is set to false,
is_analysisindemo_fieldsandtag_fieldsin the template determines whether to enable quick analysis.
Defaults to false.
The
demo_fieldsandtag_fieldsblock supports:- If this parameter is set to true, quick analysis is enabled for all
- Tag
Fields List<LtsStructuring Template V3Tag Field> - Specifies the tag fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The tag_fields structure is documented below. - Template
Id string - Specifies the template ID. The field is valid and required only when
template_typeis set to custom.
- Log
Group stringId - Specifies the log group ID. Changing this parameter will create a new resource.
- Log
Stream stringId - Specifies the log stream ID. Changing this parameter will create a new resource.
- Template
Name string - Specifies the template name. When
template_typeis set to built_in, valid values are:- ELB
- VPC
- CTS
- APIG
- DCS_AUDIT: DCS audit log.
- TOMCAT
- NGINX
- GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
- DDS_AUDIT: DDS audit log.
- MONGODB_ERROR: DDS error log.
- MONGODB_SLOW: DDS slow log.
- CFW_ACCESS: CFW access control log.
- CFW_ATTACK: CFW attack log.
- CFW_FLOW: CFW traffic log.
- MYSQL_ERROR: MYSQL error log.
- MYSQL_SLOW: MYSQL slow log:
- POSTGRESQL_SLOW: POSTGRESQL slow log.
- POSTGRESQL_ERROR: POSTGRESQL error log.
- SQLSERVER_ERROR: SQLSERVER error log.
- GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
- CDN
- SMN
- GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
- GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
- ER: ER Enterprise Router.
- MYSQL_AUDIT: MYSQL audit log.
- GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
- GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
- GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
- WAF_ACCESS: WAF access log.
- WAF_ATTACK: WAF attack log.
- DMS_REBALANCED:DMS rebalancing log.
- CCE_AUDIT: CCE audit log.
- CCE_EVENT: CCE event log.
- GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
- Template
Type string - Specifies the type of the template. The valid values are as follows:
- built_in: System templates.
- custom: Custom templates.
- Demo
Fields []LtsStructuring Template V3Demo Field Args - Specifies the example fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The demo_fields structure is documented below. - Lts
Structuring stringTemplate V3Id - The resource ID.
- Quick
Analysis bool Specifies whether to enable
demo_fieldsandtag_fieldsquick analysis.- If this parameter is set to true, quick analysis is enabled for all
demo_fieldsandtag_fields. - If this parameter is set to false,
is_analysisindemo_fieldsandtag_fieldsin the template determines whether to enable quick analysis.
Defaults to false.
The
demo_fieldsandtag_fieldsblock supports:- If this parameter is set to true, quick analysis is enabled for all
- Tag
Fields []LtsStructuring Template V3Tag Field Args - Specifies the tag fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The tag_fields structure is documented below. - Template
Id string - Specifies the template ID. The field is valid and required only when
template_typeis set to custom.
- log_
group_ stringid - Specifies the log group ID. Changing this parameter will create a new resource.
- log_
stream_ stringid - Specifies the log stream ID. Changing this parameter will create a new resource.
- template_
name string - Specifies the template name. When
template_typeis set to built_in, valid values are:- ELB
- VPC
- CTS
- APIG
- DCS_AUDIT: DCS audit log.
- TOMCAT
- NGINX
- GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
- DDS_AUDIT: DDS audit log.
- MONGODB_ERROR: DDS error log.
- MONGODB_SLOW: DDS slow log.
- CFW_ACCESS: CFW access control log.
- CFW_ATTACK: CFW attack log.
- CFW_FLOW: CFW traffic log.
- MYSQL_ERROR: MYSQL error log.
- MYSQL_SLOW: MYSQL slow log:
- POSTGRESQL_SLOW: POSTGRESQL slow log.
- POSTGRESQL_ERROR: POSTGRESQL error log.
- SQLSERVER_ERROR: SQLSERVER error log.
- GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
- CDN
- SMN
- GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
- GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
- ER: ER Enterprise Router.
- MYSQL_AUDIT: MYSQL audit log.
- GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
- GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
- GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
- WAF_ACCESS: WAF access log.
- WAF_ATTACK: WAF attack log.
- DMS_REBALANCED:DMS rebalancing log.
- CCE_AUDIT: CCE audit log.
- CCE_EVENT: CCE event log.
- GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
- template_
type string - Specifies the type of the template. The valid values are as follows:
- built_in: System templates.
- custom: Custom templates.
- demo_
fields list(object) - Specifies the example fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The demo_fields structure is documented below. - lts_
structuring_ stringtemplate_ v3_ id - The resource ID.
- quick_
analysis bool Specifies whether to enable
demo_fieldsandtag_fieldsquick analysis.- If this parameter is set to true, quick analysis is enabled for all
demo_fieldsandtag_fields. - If this parameter is set to false,
is_analysisindemo_fieldsandtag_fieldsin the template determines whether to enable quick analysis.
Defaults to false.
The
demo_fieldsandtag_fieldsblock supports:- If this parameter is set to true, quick analysis is enabled for all
- tag_
fields list(object) - Specifies the tag fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The tag_fields structure is documented below. - template_
id string - Specifies the template ID. The field is valid and required only when
template_typeis set to custom.
- log
Group StringId - Specifies the log group ID. Changing this parameter will create a new resource.
- log
Stream StringId - Specifies the log stream ID. Changing this parameter will create a new resource.
- template
Name String - Specifies the template name. When
template_typeis set to built_in, valid values are:- ELB
- VPC
- CTS
- APIG
- DCS_AUDIT: DCS audit log.
- TOMCAT
- NGINX
- GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
- DDS_AUDIT: DDS audit log.
- MONGODB_ERROR: DDS error log.
- MONGODB_SLOW: DDS slow log.
- CFW_ACCESS: CFW access control log.
- CFW_ATTACK: CFW attack log.
- CFW_FLOW: CFW traffic log.
- MYSQL_ERROR: MYSQL error log.
- MYSQL_SLOW: MYSQL slow log:
- POSTGRESQL_SLOW: POSTGRESQL slow log.
- POSTGRESQL_ERROR: POSTGRESQL error log.
- SQLSERVER_ERROR: SQLSERVER error log.
- GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
- CDN
- SMN
- GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
- GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
- ER: ER Enterprise Router.
- MYSQL_AUDIT: MYSQL audit log.
- GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
- GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
- GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
- WAF_ACCESS: WAF access log.
- WAF_ATTACK: WAF attack log.
- DMS_REBALANCED:DMS rebalancing log.
- CCE_AUDIT: CCE audit log.
- CCE_EVENT: CCE event log.
- GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
- template
Type String - Specifies the type of the template. The valid values are as follows:
- built_in: System templates.
- custom: Custom templates.
- demo
Fields List<LtsStructuring Template V3Demo Field> - Specifies the example fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The demo_fields structure is documented below. - lts
Structuring StringTemplate V3Id - The resource ID.
- quick
Analysis Boolean Specifies whether to enable
demo_fieldsandtag_fieldsquick analysis.- If this parameter is set to true, quick analysis is enabled for all
demo_fieldsandtag_fields. - If this parameter is set to false,
is_analysisindemo_fieldsandtag_fieldsin the template determines whether to enable quick analysis.
Defaults to false.
The
demo_fieldsandtag_fieldsblock supports:- If this parameter is set to true, quick analysis is enabled for all
- tag
Fields List<LtsStructuring Template V3Tag Field> - Specifies the tag fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The tag_fields structure is documented below. - template
Id String - Specifies the template ID. The field is valid and required only when
template_typeis set to custom.
- log
Group stringId - Specifies the log group ID. Changing this parameter will create a new resource.
- log
Stream stringId - Specifies the log stream ID. Changing this parameter will create a new resource.
- template
Name string - Specifies the template name. When
template_typeis set to built_in, valid values are:- ELB
- VPC
- CTS
- APIG
- DCS_AUDIT: DCS audit log.
- TOMCAT
- NGINX
- GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
- DDS_AUDIT: DDS audit log.
- MONGODB_ERROR: DDS error log.
- MONGODB_SLOW: DDS slow log.
- CFW_ACCESS: CFW access control log.
- CFW_ATTACK: CFW attack log.
- CFW_FLOW: CFW traffic log.
- MYSQL_ERROR: MYSQL error log.
- MYSQL_SLOW: MYSQL slow log:
- POSTGRESQL_SLOW: POSTGRESQL slow log.
- POSTGRESQL_ERROR: POSTGRESQL error log.
- SQLSERVER_ERROR: SQLSERVER error log.
- GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
- CDN
- SMN
- GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
- GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
- ER: ER Enterprise Router.
- MYSQL_AUDIT: MYSQL audit log.
- GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
- GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
- GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
- WAF_ACCESS: WAF access log.
- WAF_ATTACK: WAF attack log.
- DMS_REBALANCED:DMS rebalancing log.
- CCE_AUDIT: CCE audit log.
- CCE_EVENT: CCE event log.
- GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
- template
Type string - Specifies the type of the template. The valid values are as follows:
- built_in: System templates.
- custom: Custom templates.
- demo
Fields LtsStructuring Template V3Demo Field[] - Specifies the example fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The demo_fields structure is documented below. - lts
Structuring stringTemplate V3Id - The resource ID.
- quick
Analysis boolean Specifies whether to enable
demo_fieldsandtag_fieldsquick analysis.- If this parameter is set to true, quick analysis is enabled for all
demo_fieldsandtag_fields. - If this parameter is set to false,
is_analysisindemo_fieldsandtag_fieldsin the template determines whether to enable quick analysis.
Defaults to false.
The
demo_fieldsandtag_fieldsblock supports:- If this parameter is set to true, quick analysis is enabled for all
- tag
Fields LtsStructuring Template V3Tag Field[] - Specifies the tag fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The tag_fields structure is documented below. - template
Id string - Specifies the template ID. The field is valid and required only when
template_typeis set to custom.
- log_
group_ strid - Specifies the log group ID. Changing this parameter will create a new resource.
- log_
stream_ strid - Specifies the log stream ID. Changing this parameter will create a new resource.
- template_
name str - Specifies the template name. When
template_typeis set to built_in, valid values are:- ELB
- VPC
- CTS
- APIG
- DCS_AUDIT: DCS audit log.
- TOMCAT
- NGINX
- GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
- DDS_AUDIT: DDS audit log.
- MONGODB_ERROR: DDS error log.
- MONGODB_SLOW: DDS slow log.
- CFW_ACCESS: CFW access control log.
- CFW_ATTACK: CFW attack log.
- CFW_FLOW: CFW traffic log.
- MYSQL_ERROR: MYSQL error log.
- MYSQL_SLOW: MYSQL slow log:
- POSTGRESQL_SLOW: POSTGRESQL slow log.
- POSTGRESQL_ERROR: POSTGRESQL error log.
- SQLSERVER_ERROR: SQLSERVER error log.
- GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
- CDN
- SMN
- GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
- GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
- ER: ER Enterprise Router.
- MYSQL_AUDIT: MYSQL audit log.
- GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
- GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
- GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
- WAF_ACCESS: WAF access log.
- WAF_ATTACK: WAF attack log.
- DMS_REBALANCED:DMS rebalancing log.
- CCE_AUDIT: CCE audit log.
- CCE_EVENT: CCE event log.
- GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
- template_
type str - Specifies the type of the template. The valid values are as follows:
- built_in: System templates.
- custom: Custom templates.
- demo_
fields Sequence[LtsStructuring Template V3Demo Field Args] - Specifies the example fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The demo_fields structure is documented below. - lts_
structuring_ strtemplate_ v3_ id - The resource ID.
- quick_
analysis bool Specifies whether to enable
demo_fieldsandtag_fieldsquick analysis.- If this parameter is set to true, quick analysis is enabled for all
demo_fieldsandtag_fields. - If this parameter is set to false,
is_analysisindemo_fieldsandtag_fieldsin the template determines whether to enable quick analysis.
Defaults to false.
The
demo_fieldsandtag_fieldsblock supports:- If this parameter is set to true, quick analysis is enabled for all
- tag_
fields Sequence[LtsStructuring Template V3Tag Field Args] - Specifies the tag fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The tag_fields structure is documented below. - template_
id str - Specifies the template ID. The field is valid and required only when
template_typeis set to custom.
- log
Group StringId - Specifies the log group ID. Changing this parameter will create a new resource.
- log
Stream StringId - Specifies the log stream ID. Changing this parameter will create a new resource.
- template
Name String - Specifies the template name. When
template_typeis set to built_in, valid values are:- ELB
- VPC
- CTS
- APIG
- DCS_AUDIT: DCS audit log.
- TOMCAT
- NGINX
- GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
- DDS_AUDIT: DDS audit log.
- MONGODB_ERROR: DDS error log.
- MONGODB_SLOW: DDS slow log.
- CFW_ACCESS: CFW access control log.
- CFW_ATTACK: CFW attack log.
- CFW_FLOW: CFW traffic log.
- MYSQL_ERROR: MYSQL error log.
- MYSQL_SLOW: MYSQL slow log:
- POSTGRESQL_SLOW: POSTGRESQL slow log.
- POSTGRESQL_ERROR: POSTGRESQL error log.
- SQLSERVER_ERROR: SQLSERVER error log.
- GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
- CDN
- SMN
- GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
- GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
- ER: ER Enterprise Router.
- MYSQL_AUDIT: MYSQL audit log.
- GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
- GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
- GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
- WAF_ACCESS: WAF access log.
- WAF_ATTACK: WAF attack log.
- DMS_REBALANCED:DMS rebalancing log.
- CCE_AUDIT: CCE audit log.
- CCE_EVENT: CCE event log.
- GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
- template
Type String - Specifies the type of the template. The valid values are as follows:
- built_in: System templates.
- custom: Custom templates.
- demo
Fields List<Property Map> - Specifies the example fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The demo_fields structure is documented below. - lts
Structuring StringTemplate V3Id - The resource ID.
- quick
Analysis Boolean Specifies whether to enable
demo_fieldsandtag_fieldsquick analysis.- If this parameter is set to true, quick analysis is enabled for all
demo_fieldsandtag_fields. - If this parameter is set to false,
is_analysisindemo_fieldsandtag_fieldsin the template determines whether to enable quick analysis.
Defaults to false.
The
demo_fieldsandtag_fieldsblock supports:- If this parameter is set to true, quick analysis is enabled for all
- tag
Fields List<Property Map> - Specifies the tag fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The tag_fields structure is documented below. - template
Id String - Specifies the template ID. The field is valid and required only when
template_typeis set to custom.
Outputs
All input properties are implicitly available as output properties. Additionally, the LtsStructuringTemplateV3 resource produces the following output properties:
Look up Existing LtsStructuringTemplateV3 Resource
Get an existing LtsStructuringTemplateV3 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LtsStructuringTemplateV3State, opts?: CustomResourceOptions): LtsStructuringTemplateV3@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
demo_fields: Optional[Sequence[LtsStructuringTemplateV3DemoFieldArgs]] = None,
demo_log: Optional[str] = None,
log_group_id: Optional[str] = None,
log_stream_id: Optional[str] = None,
lts_structuring_template_v3_id: Optional[str] = None,
quick_analysis: Optional[bool] = None,
region: Optional[str] = None,
tag_fields: Optional[Sequence[LtsStructuringTemplateV3TagFieldArgs]] = None,
template_id: Optional[str] = None,
template_name: Optional[str] = None,
template_type: Optional[str] = None) -> LtsStructuringTemplateV3func GetLtsStructuringTemplateV3(ctx *Context, name string, id IDInput, state *LtsStructuringTemplateV3State, opts ...ResourceOption) (*LtsStructuringTemplateV3, error)public static LtsStructuringTemplateV3 Get(string name, Input<string> id, LtsStructuringTemplateV3State? state, CustomResourceOptions? opts = null)public static LtsStructuringTemplateV3 get(String name, Output<String> id, LtsStructuringTemplateV3State state, CustomResourceOptions options)resources: _: type: opentelekomcloud:LtsStructuringTemplateV3 get: id: ${id}import {
to = opentelekomcloud_lts_structuring_template_v3.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Demo
Fields List<LtsStructuring Template V3Demo Field> - Specifies the example fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The demo_fields structure is documented below. - Demo
Log string - The sample log event.
- Log
Group stringId - Specifies the log group ID. Changing this parameter will create a new resource.
- Log
Stream stringId - Specifies the log stream ID. Changing this parameter will create a new resource.
- Lts
Structuring stringTemplate V3Id - The resource ID.
- Quick
Analysis bool Specifies whether to enable
demo_fieldsandtag_fieldsquick analysis.- If this parameter is set to true, quick analysis is enabled for all
demo_fieldsandtag_fields. - If this parameter is set to false,
is_analysisindemo_fieldsandtag_fieldsin the template determines whether to enable quick analysis.
Defaults to false.
The
demo_fieldsandtag_fieldsblock supports:- If this parameter is set to true, quick analysis is enabled for all
- Region string
- Tag
Fields List<LtsStructuring Template V3Tag Field> - Specifies the tag fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The tag_fields structure is documented below. - Template
Id string - Specifies the template ID. The field is valid and required only when
template_typeis set to custom. - Template
Name string - Specifies the template name. When
template_typeis set to built_in, valid values are:- ELB
- VPC
- CTS
- APIG
- DCS_AUDIT: DCS audit log.
- TOMCAT
- NGINX
- GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
- DDS_AUDIT: DDS audit log.
- MONGODB_ERROR: DDS error log.
- MONGODB_SLOW: DDS slow log.
- CFW_ACCESS: CFW access control log.
- CFW_ATTACK: CFW attack log.
- CFW_FLOW: CFW traffic log.
- MYSQL_ERROR: MYSQL error log.
- MYSQL_SLOW: MYSQL slow log:
- POSTGRESQL_SLOW: POSTGRESQL slow log.
- POSTGRESQL_ERROR: POSTGRESQL error log.
- SQLSERVER_ERROR: SQLSERVER error log.
- GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
- CDN
- SMN
- GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
- GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
- ER: ER Enterprise Router.
- MYSQL_AUDIT: MYSQL audit log.
- GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
- GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
- GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
- WAF_ACCESS: WAF access log.
- WAF_ATTACK: WAF attack log.
- DMS_REBALANCED:DMS rebalancing log.
- CCE_AUDIT: CCE audit log.
- CCE_EVENT: CCE event log.
- GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
- Template
Type string - Specifies the type of the template. The valid values are as follows:
- built_in: System templates.
- custom: Custom templates.
- Demo
Fields []LtsStructuring Template V3Demo Field Args - Specifies the example fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The demo_fields structure is documented below. - Demo
Log string - The sample log event.
- Log
Group stringId - Specifies the log group ID. Changing this parameter will create a new resource.
- Log
Stream stringId - Specifies the log stream ID. Changing this parameter will create a new resource.
- Lts
Structuring stringTemplate V3Id - The resource ID.
- Quick
Analysis bool Specifies whether to enable
demo_fieldsandtag_fieldsquick analysis.- If this parameter is set to true, quick analysis is enabled for all
demo_fieldsandtag_fields. - If this parameter is set to false,
is_analysisindemo_fieldsandtag_fieldsin the template determines whether to enable quick analysis.
Defaults to false.
The
demo_fieldsandtag_fieldsblock supports:- If this parameter is set to true, quick analysis is enabled for all
- Region string
- Tag
Fields []LtsStructuring Template V3Tag Field Args - Specifies the tag fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The tag_fields structure is documented below. - Template
Id string - Specifies the template ID. The field is valid and required only when
template_typeis set to custom. - Template
Name string - Specifies the template name. When
template_typeis set to built_in, valid values are:- ELB
- VPC
- CTS
- APIG
- DCS_AUDIT: DCS audit log.
- TOMCAT
- NGINX
- GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
- DDS_AUDIT: DDS audit log.
- MONGODB_ERROR: DDS error log.
- MONGODB_SLOW: DDS slow log.
- CFW_ACCESS: CFW access control log.
- CFW_ATTACK: CFW attack log.
- CFW_FLOW: CFW traffic log.
- MYSQL_ERROR: MYSQL error log.
- MYSQL_SLOW: MYSQL slow log:
- POSTGRESQL_SLOW: POSTGRESQL slow log.
- POSTGRESQL_ERROR: POSTGRESQL error log.
- SQLSERVER_ERROR: SQLSERVER error log.
- GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
- CDN
- SMN
- GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
- GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
- ER: ER Enterprise Router.
- MYSQL_AUDIT: MYSQL audit log.
- GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
- GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
- GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
- WAF_ACCESS: WAF access log.
- WAF_ATTACK: WAF attack log.
- DMS_REBALANCED:DMS rebalancing log.
- CCE_AUDIT: CCE audit log.
- CCE_EVENT: CCE event log.
- GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
- Template
Type string - Specifies the type of the template. The valid values are as follows:
- built_in: System templates.
- custom: Custom templates.
- demo_
fields list(object) - Specifies the example fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The demo_fields structure is documented below. - demo_
log string - The sample log event.
- log_
group_ stringid - Specifies the log group ID. Changing this parameter will create a new resource.
- log_
stream_ stringid - Specifies the log stream ID. Changing this parameter will create a new resource.
- lts_
structuring_ stringtemplate_ v3_ id - The resource ID.
- quick_
analysis bool Specifies whether to enable
demo_fieldsandtag_fieldsquick analysis.- If this parameter is set to true, quick analysis is enabled for all
demo_fieldsandtag_fields. - If this parameter is set to false,
is_analysisindemo_fieldsandtag_fieldsin the template determines whether to enable quick analysis.
Defaults to false.
The
demo_fieldsandtag_fieldsblock supports:- If this parameter is set to true, quick analysis is enabled for all
- region string
- tag_
fields list(object) - Specifies the tag fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The tag_fields structure is documented below. - template_
id string - Specifies the template ID. The field is valid and required only when
template_typeis set to custom. - template_
name string - Specifies the template name. When
template_typeis set to built_in, valid values are:- ELB
- VPC
- CTS
- APIG
- DCS_AUDIT: DCS audit log.
- TOMCAT
- NGINX
- GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
- DDS_AUDIT: DDS audit log.
- MONGODB_ERROR: DDS error log.
- MONGODB_SLOW: DDS slow log.
- CFW_ACCESS: CFW access control log.
- CFW_ATTACK: CFW attack log.
- CFW_FLOW: CFW traffic log.
- MYSQL_ERROR: MYSQL error log.
- MYSQL_SLOW: MYSQL slow log:
- POSTGRESQL_SLOW: POSTGRESQL slow log.
- POSTGRESQL_ERROR: POSTGRESQL error log.
- SQLSERVER_ERROR: SQLSERVER error log.
- GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
- CDN
- SMN
- GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
- GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
- ER: ER Enterprise Router.
- MYSQL_AUDIT: MYSQL audit log.
- GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
- GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
- GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
- WAF_ACCESS: WAF access log.
- WAF_ATTACK: WAF attack log.
- DMS_REBALANCED:DMS rebalancing log.
- CCE_AUDIT: CCE audit log.
- CCE_EVENT: CCE event log.
- GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
- template_
type string - Specifies the type of the template. The valid values are as follows:
- built_in: System templates.
- custom: Custom templates.
- demo
Fields List<LtsStructuring Template V3Demo Field> - Specifies the example fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The demo_fields structure is documented below. - demo
Log String - The sample log event.
- log
Group StringId - Specifies the log group ID. Changing this parameter will create a new resource.
- log
Stream StringId - Specifies the log stream ID. Changing this parameter will create a new resource.
- lts
Structuring StringTemplate V3Id - The resource ID.
- quick
Analysis Boolean Specifies whether to enable
demo_fieldsandtag_fieldsquick analysis.- If this parameter is set to true, quick analysis is enabled for all
demo_fieldsandtag_fields. - If this parameter is set to false,
is_analysisindemo_fieldsandtag_fieldsin the template determines whether to enable quick analysis.
Defaults to false.
The
demo_fieldsandtag_fieldsblock supports:- If this parameter is set to true, quick analysis is enabled for all
- region String
- tag
Fields List<LtsStructuring Template V3Tag Field> - Specifies the tag fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The tag_fields structure is documented below. - template
Id String - Specifies the template ID. The field is valid and required only when
template_typeis set to custom. - template
Name String - Specifies the template name. When
template_typeis set to built_in, valid values are:- ELB
- VPC
- CTS
- APIG
- DCS_AUDIT: DCS audit log.
- TOMCAT
- NGINX
- GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
- DDS_AUDIT: DDS audit log.
- MONGODB_ERROR: DDS error log.
- MONGODB_SLOW: DDS slow log.
- CFW_ACCESS: CFW access control log.
- CFW_ATTACK: CFW attack log.
- CFW_FLOW: CFW traffic log.
- MYSQL_ERROR: MYSQL error log.
- MYSQL_SLOW: MYSQL slow log:
- POSTGRESQL_SLOW: POSTGRESQL slow log.
- POSTGRESQL_ERROR: POSTGRESQL error log.
- SQLSERVER_ERROR: SQLSERVER error log.
- GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
- CDN
- SMN
- GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
- GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
- ER: ER Enterprise Router.
- MYSQL_AUDIT: MYSQL audit log.
- GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
- GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
- GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
- WAF_ACCESS: WAF access log.
- WAF_ATTACK: WAF attack log.
- DMS_REBALANCED:DMS rebalancing log.
- CCE_AUDIT: CCE audit log.
- CCE_EVENT: CCE event log.
- GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
- template
Type String - Specifies the type of the template. The valid values are as follows:
- built_in: System templates.
- custom: Custom templates.
- demo
Fields LtsStructuring Template V3Demo Field[] - Specifies the example fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The demo_fields structure is documented below. - demo
Log string - The sample log event.
- log
Group stringId - Specifies the log group ID. Changing this parameter will create a new resource.
- log
Stream stringId - Specifies the log stream ID. Changing this parameter will create a new resource.
- lts
Structuring stringTemplate V3Id - The resource ID.
- quick
Analysis boolean Specifies whether to enable
demo_fieldsandtag_fieldsquick analysis.- If this parameter is set to true, quick analysis is enabled for all
demo_fieldsandtag_fields. - If this parameter is set to false,
is_analysisindemo_fieldsandtag_fieldsin the template determines whether to enable quick analysis.
Defaults to false.
The
demo_fieldsandtag_fieldsblock supports:- If this parameter is set to true, quick analysis is enabled for all
- region string
- tag
Fields LtsStructuring Template V3Tag Field[] - Specifies the tag fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The tag_fields structure is documented below. - template
Id string - Specifies the template ID. The field is valid and required only when
template_typeis set to custom. - template
Name string - Specifies the template name. When
template_typeis set to built_in, valid values are:- ELB
- VPC
- CTS
- APIG
- DCS_AUDIT: DCS audit log.
- TOMCAT
- NGINX
- GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
- DDS_AUDIT: DDS audit log.
- MONGODB_ERROR: DDS error log.
- MONGODB_SLOW: DDS slow log.
- CFW_ACCESS: CFW access control log.
- CFW_ATTACK: CFW attack log.
- CFW_FLOW: CFW traffic log.
- MYSQL_ERROR: MYSQL error log.
- MYSQL_SLOW: MYSQL slow log:
- POSTGRESQL_SLOW: POSTGRESQL slow log.
- POSTGRESQL_ERROR: POSTGRESQL error log.
- SQLSERVER_ERROR: SQLSERVER error log.
- GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
- CDN
- SMN
- GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
- GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
- ER: ER Enterprise Router.
- MYSQL_AUDIT: MYSQL audit log.
- GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
- GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
- GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
- WAF_ACCESS: WAF access log.
- WAF_ATTACK: WAF attack log.
- DMS_REBALANCED:DMS rebalancing log.
- CCE_AUDIT: CCE audit log.
- CCE_EVENT: CCE event log.
- GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
- template
Type string - Specifies the type of the template. The valid values are as follows:
- built_in: System templates.
- custom: Custom templates.
- demo_
fields Sequence[LtsStructuring Template V3Demo Field Args] - Specifies the example fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The demo_fields structure is documented below. - demo_
log str - The sample log event.
- log_
group_ strid - Specifies the log group ID. Changing this parameter will create a new resource.
- log_
stream_ strid - Specifies the log stream ID. Changing this parameter will create a new resource.
- lts_
structuring_ strtemplate_ v3_ id - The resource ID.
- quick_
analysis bool Specifies whether to enable
demo_fieldsandtag_fieldsquick analysis.- If this parameter is set to true, quick analysis is enabled for all
demo_fieldsandtag_fields. - If this parameter is set to false,
is_analysisindemo_fieldsandtag_fieldsin the template determines whether to enable quick analysis.
Defaults to false.
The
demo_fieldsandtag_fieldsblock supports:- If this parameter is set to true, quick analysis is enabled for all
- region str
- tag_
fields Sequence[LtsStructuring Template V3Tag Field Args] - Specifies the tag fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The tag_fields structure is documented below. - template_
id str - Specifies the template ID. The field is valid and required only when
template_typeis set to custom. - template_
name str - Specifies the template name. When
template_typeis set to built_in, valid values are:- ELB
- VPC
- CTS
- APIG
- DCS_AUDIT: DCS audit log.
- TOMCAT
- NGINX
- GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
- DDS_AUDIT: DDS audit log.
- MONGODB_ERROR: DDS error log.
- MONGODB_SLOW: DDS slow log.
- CFW_ACCESS: CFW access control log.
- CFW_ATTACK: CFW attack log.
- CFW_FLOW: CFW traffic log.
- MYSQL_ERROR: MYSQL error log.
- MYSQL_SLOW: MYSQL slow log:
- POSTGRESQL_SLOW: POSTGRESQL slow log.
- POSTGRESQL_ERROR: POSTGRESQL error log.
- SQLSERVER_ERROR: SQLSERVER error log.
- GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
- CDN
- SMN
- GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
- GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
- ER: ER Enterprise Router.
- MYSQL_AUDIT: MYSQL audit log.
- GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
- GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
- GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
- WAF_ACCESS: WAF access log.
- WAF_ATTACK: WAF attack log.
- DMS_REBALANCED:DMS rebalancing log.
- CCE_AUDIT: CCE audit log.
- CCE_EVENT: CCE event log.
- GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
- template_
type str - Specifies the type of the template. The valid values are as follows:
- built_in: System templates.
- custom: Custom templates.
- demo
Fields List<Property Map> - Specifies the example fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The demo_fields structure is documented below. - demo
Log String - The sample log event.
- log
Group StringId - Specifies the log group ID. Changing this parameter will create a new resource.
- log
Stream StringId - Specifies the log stream ID. Changing this parameter will create a new resource.
- lts
Structuring StringTemplate V3Id - The resource ID.
- quick
Analysis Boolean Specifies whether to enable
demo_fieldsandtag_fieldsquick analysis.- If this parameter is set to true, quick analysis is enabled for all
demo_fieldsandtag_fields. - If this parameter is set to false,
is_analysisindemo_fieldsandtag_fieldsin the template determines whether to enable quick analysis.
Defaults to false.
The
demo_fieldsandtag_fieldsblock supports:- If this parameter is set to true, quick analysis is enabled for all
- region String
- tag
Fields List<Property Map> - Specifies the tag fields. Use to set quick analysis configurations for fields.
Only need to enter the fields whose status is different from that of
is_analysisin the template. The tag_fields structure is documented below. - template
Id String - Specifies the template ID. The field is valid and required only when
template_typeis set to custom. - template
Name String - Specifies the template name. When
template_typeis set to built_in, valid values are:- ELB
- VPC
- CTS
- APIG
- DCS_AUDIT: DCS audit log.
- TOMCAT
- NGINX
- GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
- DDS_AUDIT: DDS audit log.
- MONGODB_ERROR: DDS error log.
- MONGODB_SLOW: DDS slow log.
- CFW_ACCESS: CFW access control log.
- CFW_ATTACK: CFW attack log.
- CFW_FLOW: CFW traffic log.
- MYSQL_ERROR: MYSQL error log.
- MYSQL_SLOW: MYSQL slow log:
- POSTGRESQL_SLOW: POSTGRESQL slow log.
- POSTGRESQL_ERROR: POSTGRESQL error log.
- SQLSERVER_ERROR: SQLSERVER error log.
- GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
- CDN
- SMN
- GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
- GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
- ER: ER Enterprise Router.
- MYSQL_AUDIT: MYSQL audit log.
- GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
- GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
- GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
- WAF_ACCESS: WAF access log.
- WAF_ATTACK: WAF attack log.
- DMS_REBALANCED:DMS rebalancing log.
- CCE_AUDIT: CCE audit log.
- CCE_EVENT: CCE event log.
- GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
- template
Type String - Specifies the type of the template. The valid values are as follows:
- built_in: System templates.
- custom: Custom templates.
Supporting Types
LtsStructuringTemplateV3DemoField, LtsStructuringTemplateV3DemoFieldArgs
- Field
Name string - Specifies the field name. The valid length is limited from
1to64. - Is
Analysis bool - Specifies whether quick analysis is enabled. Defaults to false.
- Field
Name string - Specifies the field name. The valid length is limited from
1to64. - Is
Analysis bool - Specifies whether quick analysis is enabled. Defaults to false.
- field_
name string - Specifies the field name. The valid length is limited from
1to64. - is_
analysis bool - Specifies whether quick analysis is enabled. Defaults to false.
- field
Name String - Specifies the field name. The valid length is limited from
1to64. - is
Analysis Boolean - Specifies whether quick analysis is enabled. Defaults to false.
- field
Name string - Specifies the field name. The valid length is limited from
1to64. - is
Analysis boolean - Specifies whether quick analysis is enabled. Defaults to false.
- field_
name str - Specifies the field name. The valid length is limited from
1to64. - is_
analysis bool - Specifies whether quick analysis is enabled. Defaults to false.
- field
Name String - Specifies the field name. The valid length is limited from
1to64. - is
Analysis Boolean - Specifies whether quick analysis is enabled. Defaults to false.
LtsStructuringTemplateV3TagField, LtsStructuringTemplateV3TagFieldArgs
- Field
Name string - Specifies the field name. The valid length is limited from
1to64. - Is
Analysis bool - Specifies whether quick analysis is enabled. Defaults to false.
- Field
Name string - Specifies the field name. The valid length is limited from
1to64. - Is
Analysis bool - Specifies whether quick analysis is enabled. Defaults to false.
- field_
name string - Specifies the field name. The valid length is limited from
1to64. - is_
analysis bool - Specifies whether quick analysis is enabled. Defaults to false.
- field
Name String - Specifies the field name. The valid length is limited from
1to64. - is
Analysis Boolean - Specifies whether quick analysis is enabled. Defaults to false.
- field
Name string - Specifies the field name. The valid length is limited from
1to64. - is
Analysis boolean - Specifies whether quick analysis is enabled. Defaults to false.
- field_
name str - Specifies the field name. The valid length is limited from
1to64. - is_
analysis bool - Specifies whether quick analysis is enabled. Defaults to false.
- field
Name String - Specifies the field name. The valid length is limited from
1to64. - is
Analysis Boolean - Specifies whether quick analysis is enabled. Defaults to false.
Import
The LTS structuring configuration can be imported using log_group_id and log_stream_id, separated by a slash, e.g.
bash
$ pulumi import opentelekomcloud:index/ltsStructuringTemplateV3:LtsStructuringTemplateV3 test <log_group_id>/<log_stream_id>
Note that the imported state may not be identical to your resource definition, due to some attributes missing from the
API response, security or some other reason. The missing attributes include: template_type, template_id,
demo_fields, tag_fields, quick_analysis.
It is generally recommended running pulumi preview after importing a resource.
You can then decide if changes should be applied to the resource, or the resource definition should be updated to align
with the resource. Also, you can ignore changes as below.
hcl
resource “opentelekomcloud_lts_structuring_template_v3” “test” {
lifecycle {
ignore_changes = [
template_type,
template_id,
demo_fields,
tag_fields,
quick_analysis,
]
}
}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloudTerraform Provider.
published on Thursday, Sep 10, 2026 by opentelekomcloud