1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. log
  5. Ingestion
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.log.Ingestion

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    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", {
        projectName: `terraform-example-${_default.result}`,
        description: "terraform-example",
        tags: {
            Created: "TF",
            For: "example",
        },
    });
    const exampleStore = new alicloud.log.Store("example", {
        projectName: example.projectName,
        logstoreName: "example-store",
        retentionPeriod: 3650,
        shardCount: 3,
        autoSplit: true,
        maxSplitShardCount: 60,
        appendMeta: true,
    });
    const exampleIngestion = new alicloud.log.Ingestion("example", {
        project: example.projectName,
        logstore: exampleStore.logstoreName,
        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",
        project_name=f"terraform-example-{default['result']}",
        description="terraform-example",
        tags={
            "Created": "TF",
            "For": "example",
        })
    example_store = alicloud.log.Store("example",
        project_name=example.project_name,
        logstore_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.project_name,
        logstore=example_store.logstore_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{
    			ProjectName: pulumi.Sprintf("terraform-example-%v", _default.Result),
    			Description: pulumi.String("terraform-example"),
    			Tags: pulumi.StringMap{
    				"Created": pulumi.String("TF"),
    				"For":     pulumi.String("example"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleStore, err := log.NewStore(ctx, "example", &log.StoreArgs{
    			ProjectName:        example.ProjectName,
    			LogstoreName:       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.ProjectName,
    			Logstore:       exampleStore.LogstoreName,
    			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()
        {
            ProjectName = $"terraform-example-{@default.Result}",
            Description = "terraform-example",
            Tags = 
            {
                { "Created", "TF" },
                { "For", "example" },
            },
        });
    
        var exampleStore = new AliCloud.Log.Store("example", new()
        {
            ProjectName = example.ProjectName,
            LogstoreName = "example-store",
            RetentionPeriod = 3650,
            ShardCount = 3,
            AutoSplit = true,
            MaxSplitShardCount = 60,
            AppendMeta = true,
        });
    
        var exampleIngestion = new AliCloud.Log.Ingestion("example", new()
        {
            Project = example.ProjectName,
            Logstore = exampleStore.LogstoreName,
            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()
                .projectName(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()
                .projectName(example.projectName())
                .logstoreName("example-store")
                .retentionPeriod(3650)
                .shardCount(3)
                .autoSplit(true)
                .maxSplitShardCount(60)
                .appendMeta(true)
                .build());
    
            var exampleIngestion = new Ingestion("exampleIngestion", IngestionArgs.builder()
                .project(example.projectName())
                .logstore(exampleStore.logstoreName())
                .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:
          projectName: terraform-example-${default.result}
          description: terraform-example
          tags:
            Created: TF
            For: example
      exampleStore:
        type: alicloud:log:Store
        name: example
        properties:
          projectName: ${example.projectName}
          logstoreName: example-store
          retentionPeriod: 3650
          shardCount: 3
          autoSplit: true
          maxSplitShardCount: 60
          appendMeta: true
      exampleIngestion:
        type: alicloud:log:Ingestion
        name: example
        properties:
          project: ${example.projectName}
          logstore: ${exampleStore.logstoreName}
          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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Ingestion resource accepts the following input properties:

    DisplayName string
    The name displayed on the web page.
    IngestionName 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, hour h, day d, for example 30 minutes 30m.
    Logstore string
    The name of the target logstore.
    Project string
    The name of the log project. It is the only in one Alicloud account.
    RunImmediately 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.
    TimeZone string
    Which time zone is the log time imported in, e.g. +0800.
    DisplayName string
    The name displayed on the web page.
    IngestionName 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, hour h, day d, for example 30 minutes 30m.
    Logstore string
    The name of the target logstore.
    Project string
    The name of the log project. It is the only in one Alicloud account.
    RunImmediately 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.
    TimeZone string
    Which time zone is the log time imported in, e.g. +0800.
    displayName String
    The name displayed on the web page.
    ingestionName 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, hour h, day d, for example 30 minutes 30m.
    logstore String
    The name of the target logstore.
    project String
    The name of the log project. It is the only in one Alicloud account.
    runImmediately 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.
    timeZone String
    Which time zone is the log time imported in, e.g. +0800.
    displayName string
    The name displayed on the web page.
    ingestionName 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, hour h, day d, for example 30 minutes 30m.
    logstore string
    The name of the target logstore.
    project string
    The name of the log project. It is the only in one Alicloud account.
    runImmediately 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.
    timeZone 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, hour h, day d, for example 30 minutes 30m.
    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.
    displayName String
    The name displayed on the web page.
    ingestionName 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, hour h, day d, for example 30 minutes 30m.
    logstore String
    The name of the target logstore.
    project String
    The name of the log project. It is the only in one Alicloud account.
    runImmediately 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.
    timeZone 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.
    The following state arguments are supported:
    Description string
    Ingestion job description.
    DisplayName string
    The name displayed on the web page.
    IngestionName 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, hour h, day d, for example 30 minutes 30m.
    Logstore string
    The name of the target logstore.
    Project string
    The name of the log project. It is the only in one Alicloud account.
    RunImmediately 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.
    TimeZone string
    Which time zone is the log time imported in, e.g. +0800.
    Description string
    Ingestion job description.
    DisplayName string
    The name displayed on the web page.
    IngestionName 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, hour h, day d, for example 30 minutes 30m.
    Logstore string
    The name of the target logstore.
    Project string
    The name of the log project. It is the only in one Alicloud account.
    RunImmediately 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.
    TimeZone string
    Which time zone is the log time imported in, e.g. +0800.
    description String
    Ingestion job description.
    displayName String
    The name displayed on the web page.
    ingestionName 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, hour h, day d, for example 30 minutes 30m.
    logstore String
    The name of the target logstore.
    project String
    The name of the log project. It is the only in one Alicloud account.
    runImmediately 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.
    timeZone String
    Which time zone is the log time imported in, e.g. +0800.
    description string
    Ingestion job description.
    displayName string
    The name displayed on the web page.
    ingestionName 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, hour h, day d, for example 30 minutes 30m.
    logstore string
    The name of the target logstore.
    project string
    The name of the log project. It is the only in one Alicloud account.
    runImmediately 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.
    timeZone 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, hour h, day d, for example 30 minutes 30m.
    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.
    displayName String
    The name displayed on the web page.
    ingestionName 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, hour h, day d, for example 30 minutes 30m.
    logstore String
    The name of the target logstore.
    project String
    The name of the log project. It is the only in one Alicloud account.
    runImmediately 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.
    timeZone 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.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi