alicloud.log.Ingestion
Explore with Pulumi AI
Log service ingestion, this service provides the function of importing logs of various data sources(OSS, MaxCompute) into logstore. Refer to details.
NOTE: Available in 1.161.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 example = new alicloud.log.Project("example", {
name: `terraform-example-${_default.result}`,
description: "terraform-example",
tags: {
Created: "TF",
For: "example",
},
});
const exampleStore = new alicloud.log.Store("example", {
project: example.name,
name: "example-store",
retentionPeriod: 3650,
shardCount: 3,
autoSplit: true,
maxSplitShardCount: 60,
appendMeta: true,
});
const exampleIngestion = new alicloud.log.Ingestion("example", {
project: example.name,
logstore: exampleStore.name,
ingestionName: "terraform-example",
displayName: "terraform-example",
description: "terraform-example",
interval: "30m",
runImmediately: true,
timeZone: "+0800",
source: ` {
"bucket": "bucket_name",
"compressionCodec": "none",
"encoding": "UTF-8",
"endpoint": "oss-cn-hangzhou-internal.aliyuncs.com",
"format": {
"escapeChar": "\\\\",
"fieldDelimiter": ",",
"fieldNames": [],
"firstRowAsHeader": true,
"maxLines": 1,
"quoteChar": "\\"",
"skipLeadingRows": 0,
"timeField": "",
"type": "DelimitedText"
},
"pattern": "",
"prefix": "test-prefix/",
"restoreObjectEnabled": false,
"roleARN": "acs:ram::1049446484210612:role/aliyunlogimportossrole",
"type": "AliyunOSS"
}
`,
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
default = random.index.Integer("default",
max=99999,
min=10000)
example = alicloud.log.Project("example",
name=f"terraform-example-{default['result']}",
description="terraform-example",
tags={
"Created": "TF",
"For": "example",
})
example_store = alicloud.log.Store("example",
project=example.name,
name="example-store",
retention_period=3650,
shard_count=3,
auto_split=True,
max_split_shard_count=60,
append_meta=True)
example_ingestion = alicloud.log.Ingestion("example",
project=example.name,
logstore=example_store.name,
ingestion_name="terraform-example",
display_name="terraform-example",
description="terraform-example",
interval="30m",
run_immediately=True,
time_zone="+0800",
source=""" {
"bucket": "bucket_name",
"compressionCodec": "none",
"encoding": "UTF-8",
"endpoint": "oss-cn-hangzhou-internal.aliyuncs.com",
"format": {
"escapeChar": "\\",
"fieldDelimiter": ",",
"fieldNames": [],
"firstRowAsHeader": true,
"maxLines": 1,
"quoteChar": "\"",
"skipLeadingRows": 0,
"timeField": "",
"type": "DelimitedText"
},
"pattern": "",
"prefix": "test-prefix/",
"restoreObjectEnabled": false,
"roleARN": "acs:ram::1049446484210612:role/aliyunlogimportossrole",
"type": "AliyunOSS"
}
""")
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/log"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
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
}
example, err := log.NewProject(ctx, "example", &log.ProjectArgs{
Name: pulumi.String(fmt.Sprintf("terraform-example-%v", _default.Result)),
Description: pulumi.String("terraform-example"),
Tags: pulumi.Map{
"Created": pulumi.Any("TF"),
"For": pulumi.Any("example"),
},
})
if err != nil {
return err
}
exampleStore, err := log.NewStore(ctx, "example", &log.StoreArgs{
Project: example.Name,
Name: pulumi.String("example-store"),
RetentionPeriod: pulumi.Int(3650),
ShardCount: pulumi.Int(3),
AutoSplit: pulumi.Bool(true),
MaxSplitShardCount: pulumi.Int(60),
AppendMeta: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = log.NewIngestion(ctx, "example", &log.IngestionArgs{
Project: example.Name,
Logstore: exampleStore.Name,
IngestionName: pulumi.String("terraform-example"),
DisplayName: pulumi.String("terraform-example"),
Description: pulumi.String("terraform-example"),
Interval: pulumi.String("30m"),
RunImmediately: pulumi.Bool(true),
TimeZone: pulumi.String("+0800"),
Source: pulumi.String(` {
"bucket": "bucket_name",
"compressionCodec": "none",
"encoding": "UTF-8",
"endpoint": "oss-cn-hangzhou-internal.aliyuncs.com",
"format": {
"escapeChar": "\\",
"fieldDelimiter": ",",
"fieldNames": [],
"firstRowAsHeader": true,
"maxLines": 1,
"quoteChar": "\"",
"skipLeadingRows": 0,
"timeField": "",
"type": "DelimitedText"
},
"pattern": "",
"prefix": "test-prefix/",
"restoreObjectEnabled": false,
"roleARN": "acs:ram::1049446484210612:role/aliyunlogimportossrole",
"type": "AliyunOSS"
}
`),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
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 example = new AliCloud.Log.Project("example", new()
{
Name = $"terraform-example-{@default.Result}",
Description = "terraform-example",
Tags =
{
{ "Created", "TF" },
{ "For", "example" },
},
});
var exampleStore = new AliCloud.Log.Store("example", new()
{
Project = example.Name,
Name = "example-store",
RetentionPeriod = 3650,
ShardCount = 3,
AutoSplit = true,
MaxSplitShardCount = 60,
AppendMeta = true,
});
var exampleIngestion = new AliCloud.Log.Ingestion("example", new()
{
Project = example.Name,
Logstore = exampleStore.Name,
IngestionName = "terraform-example",
DisplayName = "terraform-example",
Description = "terraform-example",
Interval = "30m",
RunImmediately = true,
TimeZone = "+0800",
Source = @" {
""bucket"": ""bucket_name"",
""compressionCodec"": ""none"",
""encoding"": ""UTF-8"",
""endpoint"": ""oss-cn-hangzhou-internal.aliyuncs.com"",
""format"": {
""escapeChar"": ""\\"",
""fieldDelimiter"": "","",
""fieldNames"": [],
""firstRowAsHeader"": true,
""maxLines"": 1,
""quoteChar"": ""\"""",
""skipLeadingRows"": 0,
""timeField"": """",
""type"": ""DelimitedText""
},
""pattern"": """",
""prefix"": ""test-prefix/"",
""restoreObjectEnabled"": false,
""roleARN"": ""acs:ram::1049446484210612:role/aliyunlogimportossrole"",
""type"": ""AliyunOSS""
}
",
});
});
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.log.Store;
import com.pulumi.alicloud.log.StoreArgs;
import com.pulumi.alicloud.log.Ingestion;
import com.pulumi.alicloud.log.IngestionArgs;
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) {
var default_ = new Integer("default", IntegerArgs.builder()
.max(99999)
.min(10000)
.build());
var example = new Project("example", ProjectArgs.builder()
.name(String.format("terraform-example-%s", default_.result()))
.description("terraform-example")
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "example")
))
.build());
var exampleStore = new Store("exampleStore", StoreArgs.builder()
.project(example.name())
.name("example-store")
.retentionPeriod(3650)
.shardCount(3)
.autoSplit(true)
.maxSplitShardCount(60)
.appendMeta(true)
.build());
var exampleIngestion = new Ingestion("exampleIngestion", IngestionArgs.builder()
.project(example.name())
.logstore(exampleStore.name())
.ingestionName("terraform-example")
.displayName("terraform-example")
.description("terraform-example")
.interval("30m")
.runImmediately(true)
.timeZone("+0800")
.source("""
{
"bucket": "bucket_name",
"compressionCodec": "none",
"encoding": "UTF-8",
"endpoint": "oss-cn-hangzhou-internal.aliyuncs.com",
"format": {
"escapeChar": "\\",
"fieldDelimiter": ",",
"fieldNames": [],
"firstRowAsHeader": true,
"maxLines": 1,
"quoteChar": "\"",
"skipLeadingRows": 0,
"timeField": "",
"type": "DelimitedText"
},
"pattern": "",
"prefix": "test-prefix/",
"restoreObjectEnabled": false,
"roleARN": "acs:ram::1049446484210612:role/aliyunlogimportossrole",
"type": "AliyunOSS"
}
""")
.build());
}
}
resources:
default:
type: random:integer
properties:
max: 99999
min: 10000
example:
type: alicloud:log:Project
properties:
name: terraform-example-${default.result}
description: terraform-example
tags:
Created: TF
For: example
exampleStore:
type: alicloud:log:Store
name: example
properties:
project: ${example.name}
name: example-store
retentionPeriod: 3650
shardCount: 3
autoSplit: true
maxSplitShardCount: 60
appendMeta: true
exampleIngestion:
type: alicloud:log:Ingestion
name: example
properties:
project: ${example.name}
logstore: ${exampleStore.name}
ingestionName: terraform-example
displayName: terraform-example
description: terraform-example
interval: 30m
runImmediately: true
timeZone: '+0800'
source: |2
{
"bucket": "bucket_name",
"compressionCodec": "none",
"encoding": "UTF-8",
"endpoint": "oss-cn-hangzhou-internal.aliyuncs.com",
"format": {
"escapeChar": "\\",
"fieldDelimiter": ",",
"fieldNames": [],
"firstRowAsHeader": true,
"maxLines": 1,
"quoteChar": "\"",
"skipLeadingRows": 0,
"timeField": "",
"type": "DelimitedText"
},
"pattern": "",
"prefix": "test-prefix/",
"restoreObjectEnabled": false,
"roleARN": "acs:ram::1049446484210612:role/aliyunlogimportossrole",
"type": "AliyunOSS"
}
Create Ingestion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Ingestion(name: string, args: IngestionArgs, opts?: CustomResourceOptions);
@overload
def Ingestion(resource_name: str,
args: IngestionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Ingestion(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
ingestion_name: Optional[str] = None,
interval: Optional[str] = None,
logstore: Optional[str] = None,
project: Optional[str] = None,
run_immediately: Optional[bool] = None,
source: Optional[str] = None,
description: Optional[str] = None,
time_zone: Optional[str] = None)
func NewIngestion(ctx *Context, name string, args IngestionArgs, opts ...ResourceOption) (*Ingestion, error)
public Ingestion(string name, IngestionArgs args, CustomResourceOptions? opts = null)
public Ingestion(String name, IngestionArgs args)
public Ingestion(String name, IngestionArgs args, CustomResourceOptions options)
type: alicloud:log:Ingestion
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 IngestionArgs
- 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 IngestionArgs
- 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 IngestionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IngestionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IngestionArgs
- 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 ingestionResource = new AliCloud.Log.Ingestion("ingestionResource", new()
{
DisplayName = "string",
IngestionName = "string",
Interval = "string",
Logstore = "string",
Project = "string",
RunImmediately = false,
Source = "string",
Description = "string",
TimeZone = "string",
});
example, err := log.NewIngestion(ctx, "ingestionResource", &log.IngestionArgs{
DisplayName: pulumi.String("string"),
IngestionName: pulumi.String("string"),
Interval: pulumi.String("string"),
Logstore: pulumi.String("string"),
Project: pulumi.String("string"),
RunImmediately: pulumi.Bool(false),
Source: pulumi.String("string"),
Description: pulumi.String("string"),
TimeZone: pulumi.String("string"),
})
var ingestionResource = new Ingestion("ingestionResource", IngestionArgs.builder()
.displayName("string")
.ingestionName("string")
.interval("string")
.logstore("string")
.project("string")
.runImmediately(false)
.source("string")
.description("string")
.timeZone("string")
.build());
ingestion_resource = alicloud.log.Ingestion("ingestionResource",
display_name="string",
ingestion_name="string",
interval="string",
logstore="string",
project="string",
run_immediately=False,
source="string",
description="string",
time_zone="string")
const ingestionResource = new alicloud.log.Ingestion("ingestionResource", {
displayName: "string",
ingestionName: "string",
interval: "string",
logstore: "string",
project: "string",
runImmediately: false,
source: "string",
description: "string",
timeZone: "string",
});
type: alicloud:log:Ingestion
properties:
description: string
displayName: string
ingestionName: string
interval: string
logstore: string
project: string
runImmediately: false
source: string
timeZone: string
Ingestion Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Ingestion resource accepts the following input properties:
- Display
Name string - The name displayed on the web page.
- Ingestion
Name string - Ingestion job name, it can only contain lowercase letters, numbers, dashes
-
and underscores_
. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long. - Interval string
- Task execution interval, support minute
m
, hourh
, dayd
, for example 30 minutes30m
. - Logstore string
- The name of the target logstore.
- Project string
- The name of the log project. It is the only in one Alicloud account.
- Run
Immediately bool - Whether to run the ingestion job immediately, if false, wait for an interval before starting the ingestion.
- Source string
- Data source and data format details. Refer to details.
- Description string
- Ingestion job description.
- Time
Zone string - Which time zone is the log time imported in, e.g.
+0800
.
- Display
Name string - The name displayed on the web page.
- Ingestion
Name string - Ingestion job name, it can only contain lowercase letters, numbers, dashes
-
and underscores_
. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long. - Interval string
- Task execution interval, support minute
m
, hourh
, dayd
, for example 30 minutes30m
. - Logstore string
- The name of the target logstore.
- Project string
- The name of the log project. It is the only in one Alicloud account.
- Run
Immediately bool - Whether to run the ingestion job immediately, if false, wait for an interval before starting the ingestion.
- Source string
- Data source and data format details. Refer to details.
- Description string
- Ingestion job description.
- Time
Zone string - Which time zone is the log time imported in, e.g.
+0800
.
- display
Name String - The name displayed on the web page.
- ingestion
Name String - Ingestion job name, it can only contain lowercase letters, numbers, dashes
-
and underscores_
. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long. - interval String
- Task execution interval, support minute
m
, hourh
, dayd
, for example 30 minutes30m
. - logstore String
- The name of the target logstore.
- project String
- The name of the log project. It is the only in one Alicloud account.
- run
Immediately Boolean - Whether to run the ingestion job immediately, if false, wait for an interval before starting the ingestion.
- source String
- Data source and data format details. Refer to details.
- description String
- Ingestion job description.
- time
Zone String - Which time zone is the log time imported in, e.g.
+0800
.
- display
Name string - The name displayed on the web page.
- ingestion
Name string - Ingestion job name, it can only contain lowercase letters, numbers, dashes
-
and underscores_
. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long. - interval string
- Task execution interval, support minute
m
, hourh
, dayd
, for example 30 minutes30m
. - logstore string
- The name of the target logstore.
- project string
- The name of the log project. It is the only in one Alicloud account.
- run
Immediately boolean - Whether to run the ingestion job immediately, if false, wait for an interval before starting the ingestion.
- source string
- Data source and data format details. Refer to details.
- description string
- Ingestion job description.
- time
Zone string - Which time zone is the log time imported in, e.g.
+0800
.
- display_
name str - The name displayed on the web page.
- ingestion_
name str - Ingestion job name, it can only contain lowercase letters, numbers, dashes
-
and underscores_
. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long. - interval str
- Task execution interval, support minute
m
, hourh
, dayd
, for example 30 minutes30m
. - logstore str
- The name of the target logstore.
- project str
- The name of the log project. It is the only in one Alicloud account.
- run_
immediately bool - Whether to run the ingestion job immediately, if false, wait for an interval before starting the ingestion.
- source str
- Data source and data format details. Refer to details.
- description str
- Ingestion job description.
- time_
zone str - Which time zone is the log time imported in, e.g.
+0800
.
- display
Name String - The name displayed on the web page.
- ingestion
Name String - Ingestion job name, it can only contain lowercase letters, numbers, dashes
-
and underscores_
. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long. - interval String
- Task execution interval, support minute
m
, hourh
, dayd
, for example 30 minutes30m
. - logstore String
- The name of the target logstore.
- project String
- The name of the log project. It is the only in one Alicloud account.
- run
Immediately Boolean - Whether to run the ingestion job immediately, if false, wait for an interval before starting the ingestion.
- source String
- Data source and data format details. Refer to details.
- description String
- Ingestion job description.
- time
Zone String - Which time zone is the log time imported in, e.g.
+0800
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Ingestion 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 Ingestion Resource
Get an existing Ingestion 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?: IngestionState, opts?: CustomResourceOptions): Ingestion
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
ingestion_name: Optional[str] = None,
interval: Optional[str] = None,
logstore: Optional[str] = None,
project: Optional[str] = None,
run_immediately: Optional[bool] = None,
source: Optional[str] = None,
time_zone: Optional[str] = None) -> Ingestion
func GetIngestion(ctx *Context, name string, id IDInput, state *IngestionState, opts ...ResourceOption) (*Ingestion, error)
public static Ingestion Get(string name, Input<string> id, IngestionState? state, CustomResourceOptions? opts = null)
public static Ingestion get(String name, Output<String> id, IngestionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Description string
- Ingestion job description.
- Display
Name string - The name displayed on the web page.
- Ingestion
Name string - Ingestion job name, it can only contain lowercase letters, numbers, dashes
-
and underscores_
. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long. - Interval string
- Task execution interval, support minute
m
, hourh
, dayd
, for example 30 minutes30m
. - Logstore string
- The name of the target logstore.
- Project string
- The name of the log project. It is the only in one Alicloud account.
- Run
Immediately bool - Whether to run the ingestion job immediately, if false, wait for an interval before starting the ingestion.
- Source string
- Data source and data format details. Refer to details.
- Time
Zone string - Which time zone is the log time imported in, e.g.
+0800
.
- Description string
- Ingestion job description.
- Display
Name string - The name displayed on the web page.
- Ingestion
Name string - Ingestion job name, it can only contain lowercase letters, numbers, dashes
-
and underscores_
. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long. - Interval string
- Task execution interval, support minute
m
, hourh
, dayd
, for example 30 minutes30m
. - Logstore string
- The name of the target logstore.
- Project string
- The name of the log project. It is the only in one Alicloud account.
- Run
Immediately bool - Whether to run the ingestion job immediately, if false, wait for an interval before starting the ingestion.
- Source string
- Data source and data format details. Refer to details.
- Time
Zone string - Which time zone is the log time imported in, e.g.
+0800
.
- description String
- Ingestion job description.
- display
Name String - The name displayed on the web page.
- ingestion
Name String - Ingestion job name, it can only contain lowercase letters, numbers, dashes
-
and underscores_
. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long. - interval String
- Task execution interval, support minute
m
, hourh
, dayd
, for example 30 minutes30m
. - logstore String
- The name of the target logstore.
- project String
- The name of the log project. It is the only in one Alicloud account.
- run
Immediately Boolean - Whether to run the ingestion job immediately, if false, wait for an interval before starting the ingestion.
- source String
- Data source and data format details. Refer to details.
- time
Zone String - Which time zone is the log time imported in, e.g.
+0800
.
- description string
- Ingestion job description.
- display
Name string - The name displayed on the web page.
- ingestion
Name string - Ingestion job name, it can only contain lowercase letters, numbers, dashes
-
and underscores_
. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long. - interval string
- Task execution interval, support minute
m
, hourh
, dayd
, for example 30 minutes30m
. - logstore string
- The name of the target logstore.
- project string
- The name of the log project. It is the only in one Alicloud account.
- run
Immediately boolean - Whether to run the ingestion job immediately, if false, wait for an interval before starting the ingestion.
- source string
- Data source and data format details. Refer to details.
- time
Zone string - Which time zone is the log time imported in, e.g.
+0800
.
- description str
- Ingestion job description.
- display_
name str - The name displayed on the web page.
- ingestion_
name str - Ingestion job name, it can only contain lowercase letters, numbers, dashes
-
and underscores_
. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long. - interval str
- Task execution interval, support minute
m
, hourh
, dayd
, for example 30 minutes30m
. - logstore str
- The name of the target logstore.
- project str
- The name of the log project. It is the only in one Alicloud account.
- run_
immediately bool - Whether to run the ingestion job immediately, if false, wait for an interval before starting the ingestion.
- source str
- Data source and data format details. Refer to details.
- time_
zone str - Which time zone is the log time imported in, e.g.
+0800
.
- description String
- Ingestion job description.
- display
Name String - The name displayed on the web page.
- ingestion
Name String - Ingestion job name, it can only contain lowercase letters, numbers, dashes
-
and underscores_
. It must start and end with lowercase letters or numbers, and the name must be 2 to 128 characters long. - interval String
- Task execution interval, support minute
m
, hourh
, dayd
, for example 30 minutes30m
. - logstore String
- The name of the target logstore.
- project String
- The name of the log project. It is the only in one Alicloud account.
- run
Immediately Boolean - Whether to run the ingestion job immediately, if false, wait for an interval before starting the ingestion.
- source String
- Data source and data format details. Refer to details.
- time
Zone String - Which time zone is the log time imported in, e.g.
+0800
.
Import
Log ingestion can be imported using the id or name, e.g.
$ pulumi import alicloud:log/ingestion:Ingestion example tf-log-project:tf-log-logstore:ingestion_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.