alicloud.sls.LogtailConfig
Explore with Pulumi AI
Provides a Log Service (SLS) Logtail Config resource.
For information about Log Service (SLS) Logtail Config and how to use it, see What is Logtail Config.
NOTE: Available since v1.259.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const _default = new random.index.Integer("default", {
max: 99999,
min: 10000,
});
const config = new pulumi.Config();
const name = config.get("name") || "tfaccsls62147";
const projectName = config.get("projectName") || "project-for-logtail-terraform";
const defaultuA28zS = new alicloud.log.Project("defaultuA28zS", {projectName: projectName});
const defaultLogtailConfig = new alicloud.sls.LogtailConfig("default", {
projectName: defaultuA28zS.projectName,
outputDetail: {
endpoint: "cn-hangzhou-intranet.log.aliyuncs.com",
region: "cn-hangzhou",
logstoreName: "example",
},
outputType: "LogService",
inputDetail: JSON.stringify({
adjustTimezone: false,
delayAlarmBytes: 0,
delaySkipBytes: 0,
discardNonUtf8: false,
discardUnmatch: true,
dockerFile: false,
enableRawLog: false,
enableTag: false,
fileEncoding: "utf8",
filePattern: "access*.log",
filterKey: ["key1"],
filterRegex: ["regex1"],
key: [
"key1",
"key2",
],
localStorage: true,
logBeginRegex: ".*",
logPath: "/var/log/httpd",
logTimezone: "",
logType: "common_reg_log",
maxDepth: 1000,
maxSendRate: -1,
mergeType: "topic",
preserve: true,
preserveDepth: 0,
priority: 0,
regex: "(w+)(s+)",
sendRateExpire: 0,
sensitive_keys: [],
tailExisted: false,
timeFormat: "%Y/%m/%d %H:%M:%S",
timeKey: "time",
topicFormat: "none",
}),
logtailConfigName: "tfaccsls62147",
inputType: "file",
});
import pulumi
import json
import pulumi_alicloud as alicloud
import pulumi_random as random
default = random.index.Integer("default",
max=99999,
min=10000)
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tfaccsls62147"
project_name = config.get("projectName")
if project_name is None:
project_name = "project-for-logtail-terraform"
defaultu_a28z_s = alicloud.log.Project("defaultuA28zS", project_name=project_name)
default_logtail_config = alicloud.sls.LogtailConfig("default",
project_name=defaultu_a28z_s.project_name,
output_detail={
"endpoint": "cn-hangzhou-intranet.log.aliyuncs.com",
"region": "cn-hangzhou",
"logstore_name": "example",
},
output_type="LogService",
input_detail=json.dumps({
"adjustTimezone": False,
"delayAlarmBytes": 0,
"delaySkipBytes": 0,
"discardNonUtf8": False,
"discardUnmatch": True,
"dockerFile": False,
"enableRawLog": False,
"enableTag": False,
"fileEncoding": "utf8",
"filePattern": "access*.log",
"filterKey": ["key1"],
"filterRegex": ["regex1"],
"key": [
"key1",
"key2",
],
"localStorage": True,
"logBeginRegex": ".*",
"logPath": "/var/log/httpd",
"logTimezone": "",
"logType": "common_reg_log",
"maxDepth": 1000,
"maxSendRate": -1,
"mergeType": "topic",
"preserve": True,
"preserveDepth": 0,
"priority": 0,
"regex": "(w+)(s+)",
"sendRateExpire": 0,
"sensitive_keys": [],
"tailExisted": False,
"timeFormat": "%Y/%m/%d %H:%M:%S",
"timeKey": "time",
"topicFormat": "none",
}),
logtail_config_name="tfaccsls62147",
input_type="file")
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/log"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sls"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"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 {
_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Max: 99999,
Min: 10000,
})
if err != nil {
return err
}
cfg := config.New(ctx, "")
name := "tfaccsls62147"
if param := cfg.Get("name"); param != "" {
name = param
}
projectName := "project-for-logtail-terraform"
if param := cfg.Get("projectName"); param != "" {
projectName = param
}
defaultuA28zS, err := log.NewProject(ctx, "defaultuA28zS", &log.ProjectArgs{
ProjectName: pulumi.String(projectName),
})
if err != nil {
return err
}
tmpJSON0, err := json.Marshal(map[string]interface{}{
"adjustTimezone": false,
"delayAlarmBytes": 0,
"delaySkipBytes": 0,
"discardNonUtf8": false,
"discardUnmatch": true,
"dockerFile": false,
"enableRawLog": false,
"enableTag": false,
"fileEncoding": "utf8",
"filePattern": "access*.log",
"filterKey": []string{
"key1",
},
"filterRegex": []string{
"regex1",
},
"key": []string{
"key1",
"key2",
},
"localStorage": true,
"logBeginRegex": ".*",
"logPath": "/var/log/httpd",
"logTimezone": "",
"logType": "common_reg_log",
"maxDepth": 1000,
"maxSendRate": -1,
"mergeType": "topic",
"preserve": true,
"preserveDepth": 0,
"priority": 0,
"regex": "(w+)(s+)",
"sendRateExpire": 0,
"sensitive_keys": []interface{}{},
"tailExisted": false,
"timeFormat": "%Y/%m/%d %H:%M:%S",
"timeKey": "time",
"topicFormat": "none",
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
_, err = sls.NewLogtailConfig(ctx, "default", &sls.LogtailConfigArgs{
ProjectName: defaultuA28zS.ProjectName,
OutputDetail: &sls.LogtailConfigOutputDetailArgs{
Endpoint: pulumi.String("cn-hangzhou-intranet.log.aliyuncs.com"),
Region: pulumi.String("cn-hangzhou"),
LogstoreName: pulumi.String("example"),
},
OutputType: pulumi.String("LogService"),
InputDetail: pulumi.String(json0),
LogtailConfigName: pulumi.String("tfaccsls62147"),
InputType: pulumi.String("file"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var @default = new Random.Index.Integer("default", new()
{
Max = 99999,
Min = 10000,
});
var config = new Config();
var name = config.Get("name") ?? "tfaccsls62147";
var projectName = config.Get("projectName") ?? "project-for-logtail-terraform";
var defaultuA28zS = new AliCloud.Log.Project("defaultuA28zS", new()
{
ProjectName = projectName,
});
var defaultLogtailConfig = new AliCloud.Sls.LogtailConfig("default", new()
{
ProjectName = defaultuA28zS.ProjectName,
OutputDetail = new AliCloud.Sls.Inputs.LogtailConfigOutputDetailArgs
{
Endpoint = "cn-hangzhou-intranet.log.aliyuncs.com",
Region = "cn-hangzhou",
LogstoreName = "example",
},
OutputType = "LogService",
InputDetail = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["adjustTimezone"] = false,
["delayAlarmBytes"] = 0,
["delaySkipBytes"] = 0,
["discardNonUtf8"] = false,
["discardUnmatch"] = true,
["dockerFile"] = false,
["enableRawLog"] = false,
["enableTag"] = false,
["fileEncoding"] = "utf8",
["filePattern"] = "access*.log",
["filterKey"] = new[]
{
"key1",
},
["filterRegex"] = new[]
{
"regex1",
},
["key"] = new[]
{
"key1",
"key2",
},
["localStorage"] = true,
["logBeginRegex"] = ".*",
["logPath"] = "/var/log/httpd",
["logTimezone"] = "",
["logType"] = "common_reg_log",
["maxDepth"] = 1000,
["maxSendRate"] = -1,
["mergeType"] = "topic",
["preserve"] = true,
["preserveDepth"] = 0,
["priority"] = 0,
["regex"] = "(w+)(s+)",
["sendRateExpire"] = 0,
["sensitive_keys"] = new[]
{
},
["tailExisted"] = false,
["timeFormat"] = "%Y/%m/%d %H:%M:%S",
["timeKey"] = "time",
["topicFormat"] = "none",
}),
LogtailConfigName = "tfaccsls62147",
InputType = "file",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.Integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.log.Project;
import com.pulumi.alicloud.log.ProjectArgs;
import com.pulumi.alicloud.sls.LogtailConfig;
import com.pulumi.alicloud.sls.LogtailConfigArgs;
import com.pulumi.alicloud.sls.inputs.LogtailConfigOutputDetailArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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();
var default_ = new Integer("default", IntegerArgs.builder()
.max(99999)
.min(10000)
.build());
final var name = config.get("name").orElse("tfaccsls62147");
final var projectName = config.get("projectName").orElse("project-for-logtail-terraform");
var defaultuA28zS = new Project("defaultuA28zS", ProjectArgs.builder()
.projectName(projectName)
.build());
var defaultLogtailConfig = new LogtailConfig("defaultLogtailConfig", LogtailConfigArgs.builder()
.projectName(defaultuA28zS.projectName())
.outputDetail(LogtailConfigOutputDetailArgs.builder()
.endpoint("cn-hangzhou-intranet.log.aliyuncs.com")
.region("cn-hangzhou")
.logstoreName("example")
.build())
.outputType("LogService")
.inputDetail(serializeJson(
jsonObject(
jsonProperty("adjustTimezone", false),
jsonProperty("delayAlarmBytes", 0),
jsonProperty("delaySkipBytes", 0),
jsonProperty("discardNonUtf8", false),
jsonProperty("discardUnmatch", true),
jsonProperty("dockerFile", false),
jsonProperty("enableRawLog", false),
jsonProperty("enableTag", false),
jsonProperty("fileEncoding", "utf8"),
jsonProperty("filePattern", "access*.log"),
jsonProperty("filterKey", jsonArray("key1")),
jsonProperty("filterRegex", jsonArray("regex1")),
jsonProperty("key", jsonArray(
"key1",
"key2"
)),
jsonProperty("localStorage", true),
jsonProperty("logBeginRegex", ".*"),
jsonProperty("logPath", "/var/log/httpd"),
jsonProperty("logTimezone", ""),
jsonProperty("logType", "common_reg_log"),
jsonProperty("maxDepth", 1000),
jsonProperty("maxSendRate", -1),
jsonProperty("mergeType", "topic"),
jsonProperty("preserve", true),
jsonProperty("preserveDepth", 0),
jsonProperty("priority", 0),
jsonProperty("regex", "(w+)(s+)"),
jsonProperty("sendRateExpire", 0),
jsonProperty("sensitive_keys", jsonArray(
)),
jsonProperty("tailExisted", false),
jsonProperty("timeFormat", "%Y/%m/%d %H:%M:%S"),
jsonProperty("timeKey", "time"),
jsonProperty("topicFormat", "none")
)))
.logtailConfigName("tfaccsls62147")
.inputType("file")
.build());
}
}
configuration:
name:
type: string
default: tfaccsls62147
projectName:
type: string
default: project-for-logtail-terraform
resources:
default:
type: random:Integer
properties:
max: 99999
min: 10000
defaultuA28zS:
type: alicloud:log:Project
properties:
projectName: ${projectName}
defaultLogtailConfig:
type: alicloud:sls:LogtailConfig
name: default
properties:
projectName: ${defaultuA28zS.projectName}
outputDetail:
endpoint: cn-hangzhou-intranet.log.aliyuncs.com
region: cn-hangzhou
logstoreName: example
outputType: LogService
inputDetail:
fn::toJSON:
adjustTimezone: false
delayAlarmBytes: 0
delaySkipBytes: 0
discardNonUtf8: false
discardUnmatch: true
dockerFile: false
enableRawLog: false
enableTag: false
fileEncoding: utf8
filePattern: access*.log
filterKey:
- key1
filterRegex:
- regex1
key:
- key1
- key2
localStorage: true
logBeginRegex: .*
logPath: /var/log/httpd
logTimezone: ""
logType: common_reg_log
maxDepth: 1000
maxSendRate: -1
mergeType: topic
preserve: true
preserveDepth: 0
priority: 0
regex: (w+)(s+)
sendRateExpire: 0
sensitive_keys: []
tailExisted: false
timeFormat: '%Y/%m/%d %H:%M:%S'
timeKey: time
topicFormat: none
logtailConfigName: tfaccsls62147
inputType: file
Create LogtailConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogtailConfig(name: string, args: LogtailConfigArgs, opts?: CustomResourceOptions);
@overload
def LogtailConfig(resource_name: str,
args: LogtailConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogtailConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_name: Optional[str] = None,
create_time: Optional[str] = None,
input_detail: Optional[str] = None,
input_type: Optional[str] = None,
last_modify_time: Optional[int] = None,
log_sample: Optional[str] = None,
logtail_config_name: Optional[str] = None,
output_detail: Optional[LogtailConfigOutputDetailArgs] = None,
output_type: Optional[str] = None)
func NewLogtailConfig(ctx *Context, name string, args LogtailConfigArgs, opts ...ResourceOption) (*LogtailConfig, error)
public LogtailConfig(string name, LogtailConfigArgs args, CustomResourceOptions? opts = null)
public LogtailConfig(String name, LogtailConfigArgs args)
public LogtailConfig(String name, LogtailConfigArgs args, CustomResourceOptions options)
type: alicloud:sls:LogtailConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LogtailConfigArgs
- 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 LogtailConfigArgs
- 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 LogtailConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogtailConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogtailConfigArgs
- 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 logtailConfigResource = new AliCloud.Sls.LogtailConfig("logtailConfigResource", new()
{
ProjectName = "string",
CreateTime = "string",
InputDetail = "string",
InputType = "string",
LastModifyTime = 0,
LogSample = "string",
LogtailConfigName = "string",
OutputDetail = new AliCloud.Sls.Inputs.LogtailConfigOutputDetailArgs
{
Endpoint = "string",
LogstoreName = "string",
Region = "string",
},
OutputType = "string",
});
example, err := sls.NewLogtailConfig(ctx, "logtailConfigResource", &sls.LogtailConfigArgs{
ProjectName: pulumi.String("string"),
CreateTime: pulumi.String("string"),
InputDetail: pulumi.String("string"),
InputType: pulumi.String("string"),
LastModifyTime: pulumi.Int(0),
LogSample: pulumi.String("string"),
LogtailConfigName: pulumi.String("string"),
OutputDetail: &sls.LogtailConfigOutputDetailArgs{
Endpoint: pulumi.String("string"),
LogstoreName: pulumi.String("string"),
Region: pulumi.String("string"),
},
OutputType: pulumi.String("string"),
})
var logtailConfigResource = new LogtailConfig("logtailConfigResource", LogtailConfigArgs.builder()
.projectName("string")
.createTime("string")
.inputDetail("string")
.inputType("string")
.lastModifyTime(0)
.logSample("string")
.logtailConfigName("string")
.outputDetail(LogtailConfigOutputDetailArgs.builder()
.endpoint("string")
.logstoreName("string")
.region("string")
.build())
.outputType("string")
.build());
logtail_config_resource = alicloud.sls.LogtailConfig("logtailConfigResource",
project_name="string",
create_time="string",
input_detail="string",
input_type="string",
last_modify_time=0,
log_sample="string",
logtail_config_name="string",
output_detail={
"endpoint": "string",
"logstore_name": "string",
"region": "string",
},
output_type="string")
const logtailConfigResource = new alicloud.sls.LogtailConfig("logtailConfigResource", {
projectName: "string",
createTime: "string",
inputDetail: "string",
inputType: "string",
lastModifyTime: 0,
logSample: "string",
logtailConfigName: "string",
outputDetail: {
endpoint: "string",
logstoreName: "string",
region: "string",
},
outputType: "string",
});
type: alicloud:sls:LogtailConfig
properties:
createTime: string
inputDetail: string
inputType: string
lastModifyTime: 0
logSample: string
logtailConfigName: string
outputDetail:
endpoint: string
logstoreName: string
region: string
outputType: string
projectName: string
LogtailConfig 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 LogtailConfig resource accepts the following input properties:
- Project
Name string - Project name
- Create
Time string - The creation time of the resource
- Input
Detail string - The detailed configuration entered by logtail.
- Input
Type string - Method of log entry
- Last
Modify intTime - Last modification time, unix timestamp
- Log
Sample string - Sample log
- Logtail
Config stringName - The name of the resource
- Output
Detail Pulumi.Ali Cloud. Sls. Inputs. Logtail Config Output Detail - Detailed configuration of logtail output See
output_detail
below. - Output
Type string - Log output mode. You can only upload data to log service.
- Project
Name string - Project name
- Create
Time string - The creation time of the resource
- Input
Detail string - The detailed configuration entered by logtail.
- Input
Type string - Method of log entry
- Last
Modify intTime - Last modification time, unix timestamp
- Log
Sample string - Sample log
- Logtail
Config stringName - The name of the resource
- Output
Detail LogtailConfig Output Detail Args - Detailed configuration of logtail output See
output_detail
below. - Output
Type string - Log output mode. You can only upload data to log service.
- project
Name String - Project name
- create
Time String - The creation time of the resource
- input
Detail String - The detailed configuration entered by logtail.
- input
Type String - Method of log entry
- last
Modify IntegerTime - Last modification time, unix timestamp
- log
Sample String - Sample log
- logtail
Config StringName - The name of the resource
- output
Detail LogtailConfig Output Detail - Detailed configuration of logtail output See
output_detail
below. - output
Type String - Log output mode. You can only upload data to log service.
- project
Name string - Project name
- create
Time string - The creation time of the resource
- input
Detail string - The detailed configuration entered by logtail.
- input
Type string - Method of log entry
- last
Modify numberTime - Last modification time, unix timestamp
- log
Sample string - Sample log
- logtail
Config stringName - The name of the resource
- output
Detail LogtailConfig Output Detail - Detailed configuration of logtail output See
output_detail
below. - output
Type string - Log output mode. You can only upload data to log service.
- project_
name str - Project name
- create_
time str - The creation time of the resource
- input_
detail str - The detailed configuration entered by logtail.
- input_
type str - Method of log entry
- last_
modify_ inttime - Last modification time, unix timestamp
- log_
sample str - Sample log
- logtail_
config_ strname - The name of the resource
- output_
detail LogtailConfig Output Detail Args - Detailed configuration of logtail output See
output_detail
below. - output_
type str - Log output mode. You can only upload data to log service.
- project
Name String - Project name
- create
Time String - The creation time of the resource
- input
Detail String - The detailed configuration entered by logtail.
- input
Type String - Method of log entry
- last
Modify NumberTime - Last modification time, unix timestamp
- log
Sample String - Sample log
- logtail
Config StringName - The name of the resource
- output
Detail Property Map - Detailed configuration of logtail output See
output_detail
below. - output
Type String - Log output mode. You can only upload data to log service.
Outputs
All input properties are implicitly available as output properties. Additionally, the LogtailConfig resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing LogtailConfig Resource
Get an existing LogtailConfig 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?: LogtailConfigState, opts?: CustomResourceOptions): LogtailConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
input_detail: Optional[str] = None,
input_type: Optional[str] = None,
last_modify_time: Optional[int] = None,
log_sample: Optional[str] = None,
logtail_config_name: Optional[str] = None,
output_detail: Optional[LogtailConfigOutputDetailArgs] = None,
output_type: Optional[str] = None,
project_name: Optional[str] = None) -> LogtailConfig
func GetLogtailConfig(ctx *Context, name string, id IDInput, state *LogtailConfigState, opts ...ResourceOption) (*LogtailConfig, error)
public static LogtailConfig Get(string name, Input<string> id, LogtailConfigState? state, CustomResourceOptions? opts = null)
public static LogtailConfig get(String name, Output<String> id, LogtailConfigState state, CustomResourceOptions options)
resources: _: type: alicloud:sls:LogtailConfig get: 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.
- Create
Time string - The creation time of the resource
- Input
Detail string - The detailed configuration entered by logtail.
- Input
Type string - Method of log entry
- Last
Modify intTime - Last modification time, unix timestamp
- Log
Sample string - Sample log
- Logtail
Config stringName - The name of the resource
- Output
Detail Pulumi.Ali Cloud. Sls. Inputs. Logtail Config Output Detail - Detailed configuration of logtail output See
output_detail
below. - Output
Type string - Log output mode. You can only upload data to log service.
- Project
Name string - Project name
- Create
Time string - The creation time of the resource
- Input
Detail string - The detailed configuration entered by logtail.
- Input
Type string - Method of log entry
- Last
Modify intTime - Last modification time, unix timestamp
- Log
Sample string - Sample log
- Logtail
Config stringName - The name of the resource
- Output
Detail LogtailConfig Output Detail Args - Detailed configuration of logtail output See
output_detail
below. - Output
Type string - Log output mode. You can only upload data to log service.
- Project
Name string - Project name
- create
Time String - The creation time of the resource
- input
Detail String - The detailed configuration entered by logtail.
- input
Type String - Method of log entry
- last
Modify IntegerTime - Last modification time, unix timestamp
- log
Sample String - Sample log
- logtail
Config StringName - The name of the resource
- output
Detail LogtailConfig Output Detail - Detailed configuration of logtail output See
output_detail
below. - output
Type String - Log output mode. You can only upload data to log service.
- project
Name String - Project name
- create
Time string - The creation time of the resource
- input
Detail string - The detailed configuration entered by logtail.
- input
Type string - Method of log entry
- last
Modify numberTime - Last modification time, unix timestamp
- log
Sample string - Sample log
- logtail
Config stringName - The name of the resource
- output
Detail LogtailConfig Output Detail - Detailed configuration of logtail output See
output_detail
below. - output
Type string - Log output mode. You can only upload data to log service.
- project
Name string - Project name
- create_
time str - The creation time of the resource
- input_
detail str - The detailed configuration entered by logtail.
- input_
type str - Method of log entry
- last_
modify_ inttime - Last modification time, unix timestamp
- log_
sample str - Sample log
- logtail_
config_ strname - The name of the resource
- output_
detail LogtailConfig Output Detail Args - Detailed configuration of logtail output See
output_detail
below. - output_
type str - Log output mode. You can only upload data to log service.
- project_
name str - Project name
- create
Time String - The creation time of the resource
- input
Detail String - The detailed configuration entered by logtail.
- input
Type String - Method of log entry
- last
Modify NumberTime - Last modification time, unix timestamp
- log
Sample String - Sample log
- logtail
Config StringName - The name of the resource
- output
Detail Property Map - Detailed configuration of logtail output See
output_detail
below. - output
Type String - Log output mode. You can only upload data to log service.
- project
Name String - Project name
Supporting Types
LogtailConfigOutputDetail, LogtailConfigOutputDetailArgs
- Endpoint string
- The endpoint of the log project.
- Logstore
Name string - The name of the output target logstore.
- Region string
- Region
- Endpoint string
- The endpoint of the log project.
- Logstore
Name string - The name of the output target logstore.
- Region string
- Region
- endpoint String
- The endpoint of the log project.
- logstore
Name String - The name of the output target logstore.
- region String
- Region
- endpoint string
- The endpoint of the log project.
- logstore
Name string - The name of the output target logstore.
- region string
- Region
- endpoint str
- The endpoint of the log project.
- logstore_
name str - The name of the output target logstore.
- region str
- Region
- endpoint String
- The endpoint of the log project.
- logstore
Name String - The name of the output target logstore.
- region String
- Region
Import
Log Service (SLS) Logtail Config can be imported using the id, e.g.
$ pulumi import alicloud:sls/logtailConfig:LogtailConfig example <project_name>:<logtail_config_name>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.