1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. log
  5. StoreIndex
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.log.StoreIndex

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    Log Service provides the LogSearch/Analytics function to query and analyze large amounts of logs in real time. You can use this function by enabling the index and field statistics. Refer to details

    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",
    });
    const exampleStore = new alicloud.log.Store("example", {
        project: example.name,
        name: "example-store",
        shardCount: 3,
        autoSplit: true,
        maxSplitShardCount: 60,
        appendMeta: true,
    });
    const exampleStoreIndex = new alicloud.log.StoreIndex("example", {
        project: example.name,
        logstore: exampleStore.name,
        fullText: {
            caseSensitive: true,
            token: ` #^*\x0d
    \x09`,
        },
        fieldSearches: [{
            name: "terraform-example",
            enableAnalytics: true,
            type: "text",
            token: ` #^*\x0d
    \x09`,
        }],
    });
    
    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")
    example_store = alicloud.log.Store("example",
        project=example.name,
        name="example-store",
        shard_count=3,
        auto_split=True,
        max_split_shard_count=60,
        append_meta=True)
    example_store_index = alicloud.log.StoreIndex("example",
        project=example.name,
        logstore=example_store.name,
        full_text=alicloud.log.StoreIndexFullTextArgs(
            case_sensitive=True,
            token=""" #$^*\x0d
    \x09""",
        ),
        field_searches=[alicloud.log.StoreIndexFieldSearchArgs(
            name="terraform-example",
            enable_analytics=True,
            type="text",
            token=""" #$^*\x0d
    \x09""",
        )])
    
    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"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleStore, err := log.NewStore(ctx, "example", &log.StoreArgs{
    			Project:            example.Name,
    			Name:               pulumi.String("example-store"),
    			ShardCount:         pulumi.Int(3),
    			AutoSplit:          pulumi.Bool(true),
    			MaxSplitShardCount: pulumi.Int(60),
    			AppendMeta:         pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = log.NewStoreIndex(ctx, "example", &log.StoreIndexArgs{
    			Project:  example.Name,
    			Logstore: exampleStore.Name,
    			FullText: &log.StoreIndexFullTextArgs{
    				CaseSensitive: pulumi.Bool(true),
    				Token:         pulumi.String(" #$^*
    \n	"),
    			},
    			FieldSearches: log.StoreIndexFieldSearchArray{
    				&log.StoreIndexFieldSearchArgs{
    					Name:            pulumi.String("terraform-example"),
    					EnableAnalytics: pulumi.Bool(true),
    					Type:            pulumi.String("text"),
    					Token:           pulumi.String(" #$^*
    \n	"),
    				},
    			},
    		})
    		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",
        });
    
        var exampleStore = new AliCloud.Log.Store("example", new()
        {
            Project = example.Name,
            Name = "example-store",
            ShardCount = 3,
            AutoSplit = true,
            MaxSplitShardCount = 60,
            AppendMeta = true,
        });
    
        var exampleStoreIndex = new AliCloud.Log.StoreIndex("example", new()
        {
            Project = example.Name,
            Logstore = exampleStore.Name,
            FullText = new AliCloud.Log.Inputs.StoreIndexFullTextArgs
            {
                CaseSensitive = true,
                Token = @" #$^*
    	",
            },
            FieldSearches = new[]
            {
                new AliCloud.Log.Inputs.StoreIndexFieldSearchArgs
                {
                    Name = "terraform-example",
                    EnableAnalytics = true,
                    Type = "text",
                    Token = @" #$^*
    	",
                },
            },
        });
    
    });
    
    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.StoreIndex;
    import com.pulumi.alicloud.log.StoreIndexArgs;
    import com.pulumi.alicloud.log.inputs.StoreIndexFullTextArgs;
    import com.pulumi.alicloud.log.inputs.StoreIndexFieldSearchArgs;
    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")
                .build());
    
            var exampleStore = new Store("exampleStore", StoreArgs.builder()
                .project(example.name())
                .name("example-store")
                .shardCount(3)
                .autoSplit(true)
                .maxSplitShardCount(60)
                .appendMeta(true)
                .build());
    
            var exampleStoreIndex = new StoreIndex("exampleStoreIndex", StoreIndexArgs.builder()
                .project(example.name())
                .logstore(exampleStore.name())
                .fullText(StoreIndexFullTextArgs.builder()
                    .caseSensitive(true)
                    .token("""
     #$^*
    	                """)
                    .build())
                .fieldSearches(StoreIndexFieldSearchArgs.builder()
                    .name("terraform-example")
                    .enableAnalytics(true)
                    .type("text")
                    .token("""
     #$^*
    	                """)
                    .build())
                .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
      exampleStore:
        type: alicloud:log:Store
        name: example
        properties:
          project: ${example.name}
          name: example-store
          shardCount: 3
          autoSplit: true
          maxSplitShardCount: 60
          appendMeta: true
      exampleStoreIndex:
        type: alicloud:log:StoreIndex
        name: example
        properties:
          project: ${example.name}
          logstore: ${exampleStore.name}
          fullText:
            caseSensitive: true
            token: " #$^*\r\n\t"
          fieldSearches:
            - name: terraform-example
              enableAnalytics: true
              type: text
              token: " #$^*\r\n\t"
    

    Module Support

    You can use the existing sls module to create SLS project, store and store index one-click, like ECS instances.

    Create StoreIndex Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new StoreIndex(name: string, args: StoreIndexArgs, opts?: CustomResourceOptions);
    @overload
    def StoreIndex(resource_name: str,
                   args: StoreIndexArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def StoreIndex(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   logstore: Optional[str] = None,
                   project: Optional[str] = None,
                   field_searches: Optional[Sequence[StoreIndexFieldSearchArgs]] = None,
                   full_text: Optional[StoreIndexFullTextArgs] = None)
    func NewStoreIndex(ctx *Context, name string, args StoreIndexArgs, opts ...ResourceOption) (*StoreIndex, error)
    public StoreIndex(string name, StoreIndexArgs args, CustomResourceOptions? opts = null)
    public StoreIndex(String name, StoreIndexArgs args)
    public StoreIndex(String name, StoreIndexArgs args, CustomResourceOptions options)
    
    type: alicloud:log:StoreIndex
    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 StoreIndexArgs
    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 StoreIndexArgs
    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 StoreIndexArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StoreIndexArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StoreIndexArgs
    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 storeIndexResource = new AliCloud.Log.StoreIndex("storeIndexResource", new()
    {
        Logstore = "string",
        Project = "string",
        FieldSearches = new[]
        {
            new AliCloud.Log.Inputs.StoreIndexFieldSearchArgs
            {
                Name = "string",
                Alias = "string",
                CaseSensitive = false,
                EnableAnalytics = false,
                IncludeChinese = false,
                JsonKeys = new[]
                {
                    new AliCloud.Log.Inputs.StoreIndexFieldSearchJsonKeyArgs
                    {
                        Name = "string",
                        Alias = "string",
                        DocValue = false,
                        Type = "string",
                    },
                },
                Token = "string",
                Type = "string",
            },
        },
        FullText = new AliCloud.Log.Inputs.StoreIndexFullTextArgs
        {
            CaseSensitive = false,
            IncludeChinese = false,
            Token = "string",
        },
    });
    
    example, err := log.NewStoreIndex(ctx, "storeIndexResource", &log.StoreIndexArgs{
    	Logstore: pulumi.String("string"),
    	Project:  pulumi.String("string"),
    	FieldSearches: log.StoreIndexFieldSearchArray{
    		&log.StoreIndexFieldSearchArgs{
    			Name:            pulumi.String("string"),
    			Alias:           pulumi.String("string"),
    			CaseSensitive:   pulumi.Bool(false),
    			EnableAnalytics: pulumi.Bool(false),
    			IncludeChinese:  pulumi.Bool(false),
    			JsonKeys: log.StoreIndexFieldSearchJsonKeyArray{
    				&log.StoreIndexFieldSearchJsonKeyArgs{
    					Name:     pulumi.String("string"),
    					Alias:    pulumi.String("string"),
    					DocValue: pulumi.Bool(false),
    					Type:     pulumi.String("string"),
    				},
    			},
    			Token: pulumi.String("string"),
    			Type:  pulumi.String("string"),
    		},
    	},
    	FullText: &log.StoreIndexFullTextArgs{
    		CaseSensitive:  pulumi.Bool(false),
    		IncludeChinese: pulumi.Bool(false),
    		Token:          pulumi.String("string"),
    	},
    })
    
    var storeIndexResource = new StoreIndex("storeIndexResource", StoreIndexArgs.builder()
        .logstore("string")
        .project("string")
        .fieldSearches(StoreIndexFieldSearchArgs.builder()
            .name("string")
            .alias("string")
            .caseSensitive(false)
            .enableAnalytics(false)
            .includeChinese(false)
            .jsonKeys(StoreIndexFieldSearchJsonKeyArgs.builder()
                .name("string")
                .alias("string")
                .docValue(false)
                .type("string")
                .build())
            .token("string")
            .type("string")
            .build())
        .fullText(StoreIndexFullTextArgs.builder()
            .caseSensitive(false)
            .includeChinese(false)
            .token("string")
            .build())
        .build());
    
    store_index_resource = alicloud.log.StoreIndex("storeIndexResource",
        logstore="string",
        project="string",
        field_searches=[alicloud.log.StoreIndexFieldSearchArgs(
            name="string",
            alias="string",
            case_sensitive=False,
            enable_analytics=False,
            include_chinese=False,
            json_keys=[alicloud.log.StoreIndexFieldSearchJsonKeyArgs(
                name="string",
                alias="string",
                doc_value=False,
                type="string",
            )],
            token="string",
            type="string",
        )],
        full_text=alicloud.log.StoreIndexFullTextArgs(
            case_sensitive=False,
            include_chinese=False,
            token="string",
        ))
    
    const storeIndexResource = new alicloud.log.StoreIndex("storeIndexResource", {
        logstore: "string",
        project: "string",
        fieldSearches: [{
            name: "string",
            alias: "string",
            caseSensitive: false,
            enableAnalytics: false,
            includeChinese: false,
            jsonKeys: [{
                name: "string",
                alias: "string",
                docValue: false,
                type: "string",
            }],
            token: "string",
            type: "string",
        }],
        fullText: {
            caseSensitive: false,
            includeChinese: false,
            token: "string",
        },
    });
    
    type: alicloud:log:StoreIndex
    properties:
        fieldSearches:
            - alias: string
              caseSensitive: false
              enableAnalytics: false
              includeChinese: false
              jsonKeys:
                - alias: string
                  docValue: false
                  name: string
                  type: string
              name: string
              token: string
              type: string
        fullText:
            caseSensitive: false
            includeChinese: false
            token: string
        logstore: string
        project: string
    

    StoreIndex 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 StoreIndex resource accepts the following input properties:

    Logstore string
    The log store name to the query index belongs.
    Project string
    The project name to the log store belongs.
    FieldSearches List<Pulumi.AliCloud.Log.Inputs.StoreIndexFieldSearch>
    List configurations of field search index. Valid item as follows:
    FullText Pulumi.AliCloud.Log.Inputs.StoreIndexFullText
    The configuration of full text index. Valid item as follows:
    Logstore string
    The log store name to the query index belongs.
    Project string
    The project name to the log store belongs.
    FieldSearches []StoreIndexFieldSearchArgs
    List configurations of field search index. Valid item as follows:
    FullText StoreIndexFullTextArgs
    The configuration of full text index. Valid item as follows:
    logstore String
    The log store name to the query index belongs.
    project String
    The project name to the log store belongs.
    fieldSearches List<StoreIndexFieldSearch>
    List configurations of field search index. Valid item as follows:
    fullText StoreIndexFullText
    The configuration of full text index. Valid item as follows:
    logstore string
    The log store name to the query index belongs.
    project string
    The project name to the log store belongs.
    fieldSearches StoreIndexFieldSearch[]
    List configurations of field search index. Valid item as follows:
    fullText StoreIndexFullText
    The configuration of full text index. Valid item as follows:
    logstore str
    The log store name to the query index belongs.
    project str
    The project name to the log store belongs.
    field_searches Sequence[StoreIndexFieldSearchArgs]
    List configurations of field search index. Valid item as follows:
    full_text StoreIndexFullTextArgs
    The configuration of full text index. Valid item as follows:
    logstore String
    The log store name to the query index belongs.
    project String
    The project name to the log store belongs.
    fieldSearches List<Property Map>
    List configurations of field search index. Valid item as follows:
    fullText Property Map
    The configuration of full text index. Valid item as follows:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the StoreIndex 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 StoreIndex Resource

    Get an existing StoreIndex 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?: StoreIndexState, opts?: CustomResourceOptions): StoreIndex
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            field_searches: Optional[Sequence[StoreIndexFieldSearchArgs]] = None,
            full_text: Optional[StoreIndexFullTextArgs] = None,
            logstore: Optional[str] = None,
            project: Optional[str] = None) -> StoreIndex
    func GetStoreIndex(ctx *Context, name string, id IDInput, state *StoreIndexState, opts ...ResourceOption) (*StoreIndex, error)
    public static StoreIndex Get(string name, Input<string> id, StoreIndexState? state, CustomResourceOptions? opts = null)
    public static StoreIndex get(String name, Output<String> id, StoreIndexState 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:
    FieldSearches List<Pulumi.AliCloud.Log.Inputs.StoreIndexFieldSearch>
    List configurations of field search index. Valid item as follows:
    FullText Pulumi.AliCloud.Log.Inputs.StoreIndexFullText
    The configuration of full text index. Valid item as follows:
    Logstore string
    The log store name to the query index belongs.
    Project string
    The project name to the log store belongs.
    FieldSearches []StoreIndexFieldSearchArgs
    List configurations of field search index. Valid item as follows:
    FullText StoreIndexFullTextArgs
    The configuration of full text index. Valid item as follows:
    Logstore string
    The log store name to the query index belongs.
    Project string
    The project name to the log store belongs.
    fieldSearches List<StoreIndexFieldSearch>
    List configurations of field search index. Valid item as follows:
    fullText StoreIndexFullText
    The configuration of full text index. Valid item as follows:
    logstore String
    The log store name to the query index belongs.
    project String
    The project name to the log store belongs.
    fieldSearches StoreIndexFieldSearch[]
    List configurations of field search index. Valid item as follows:
    fullText StoreIndexFullText
    The configuration of full text index. Valid item as follows:
    logstore string
    The log store name to the query index belongs.
    project string
    The project name to the log store belongs.
    field_searches Sequence[StoreIndexFieldSearchArgs]
    List configurations of field search index. Valid item as follows:
    full_text StoreIndexFullTextArgs
    The configuration of full text index. Valid item as follows:
    logstore str
    The log store name to the query index belongs.
    project str
    The project name to the log store belongs.
    fieldSearches List<Property Map>
    List configurations of field search index. Valid item as follows:
    fullText Property Map
    The configuration of full text index. Valid item as follows:
    logstore String
    The log store name to the query index belongs.
    project String
    The project name to the log store belongs.

    Supporting Types

    StoreIndexFieldSearch, StoreIndexFieldSearchArgs

    Name string
    The field name, which is unique in the same log store.
    Alias string
    The alias of one field
    CaseSensitive bool
    Whether the case sensitive for the field. Default to false. It is valid when "type" is "text" or "json".
    EnableAnalytics bool
    Whether to enable field analytics. Default to true.
    IncludeChinese bool
    Whether includes the chinese for the field. Default to false. It is valid when "type" is "text" or "json".
    JsonKeys List<Pulumi.AliCloud.Log.Inputs.StoreIndexFieldSearchJsonKey>
    Use nested index when type is json
    Token string
    The string of several split words, like "\r", "#". It is valid when "type" is "text" or "json".
    Type string
    The type of one field. Valid values: ["long", "text", "double", "json"]. Default to "long".
    Name string
    The field name, which is unique in the same log store.
    Alias string
    The alias of one field
    CaseSensitive bool
    Whether the case sensitive for the field. Default to false. It is valid when "type" is "text" or "json".
    EnableAnalytics bool
    Whether to enable field analytics. Default to true.
    IncludeChinese bool
    Whether includes the chinese for the field. Default to false. It is valid when "type" is "text" or "json".
    JsonKeys []StoreIndexFieldSearchJsonKey
    Use nested index when type is json
    Token string
    The string of several split words, like "\r", "#". It is valid when "type" is "text" or "json".
    Type string
    The type of one field. Valid values: ["long", "text", "double", "json"]. Default to "long".
    name String
    The field name, which is unique in the same log store.
    alias String
    The alias of one field
    caseSensitive Boolean
    Whether the case sensitive for the field. Default to false. It is valid when "type" is "text" or "json".
    enableAnalytics Boolean
    Whether to enable field analytics. Default to true.
    includeChinese Boolean
    Whether includes the chinese for the field. Default to false. It is valid when "type" is "text" or "json".
    jsonKeys List<StoreIndexFieldSearchJsonKey>
    Use nested index when type is json
    token String
    The string of several split words, like "\r", "#". It is valid when "type" is "text" or "json".
    type String
    The type of one field. Valid values: ["long", "text", "double", "json"]. Default to "long".
    name string
    The field name, which is unique in the same log store.
    alias string
    The alias of one field
    caseSensitive boolean
    Whether the case sensitive for the field. Default to false. It is valid when "type" is "text" or "json".
    enableAnalytics boolean
    Whether to enable field analytics. Default to true.
    includeChinese boolean
    Whether includes the chinese for the field. Default to false. It is valid when "type" is "text" or "json".
    jsonKeys StoreIndexFieldSearchJsonKey[]
    Use nested index when type is json
    token string
    The string of several split words, like "\r", "#". It is valid when "type" is "text" or "json".
    type string
    The type of one field. Valid values: ["long", "text", "double", "json"]. Default to "long".
    name str
    The field name, which is unique in the same log store.
    alias str
    The alias of one field
    case_sensitive bool
    Whether the case sensitive for the field. Default to false. It is valid when "type" is "text" or "json".
    enable_analytics bool
    Whether to enable field analytics. Default to true.
    include_chinese bool
    Whether includes the chinese for the field. Default to false. It is valid when "type" is "text" or "json".
    json_keys Sequence[StoreIndexFieldSearchJsonKey]
    Use nested index when type is json
    token str
    The string of several split words, like "\r", "#". It is valid when "type" is "text" or "json".
    type str
    The type of one field. Valid values: ["long", "text", "double", "json"]. Default to "long".
    name String
    The field name, which is unique in the same log store.
    alias String
    The alias of one field
    caseSensitive Boolean
    Whether the case sensitive for the field. Default to false. It is valid when "type" is "text" or "json".
    enableAnalytics Boolean
    Whether to enable field analytics. Default to true.
    includeChinese Boolean
    Whether includes the chinese for the field. Default to false. It is valid when "type" is "text" or "json".
    jsonKeys List<Property Map>
    Use nested index when type is json
    token String
    The string of several split words, like "\r", "#". It is valid when "type" is "text" or "json".
    type String
    The type of one field. Valid values: ["long", "text", "double", "json"]. Default to "long".

    StoreIndexFieldSearchJsonKey, StoreIndexFieldSearchJsonKeyArgs

    Name string
    When using the json_keys field, this field is required.
    Alias string
    The alias of one field.
    DocValue bool

    Whether to enable statistics. default to true.

    Note: At least one of the "full_text" and "field_search" should be specified.

    Type string
    The type of one field. Valid values: ["long", "text", "double"]. Default to "long"
    Name string
    When using the json_keys field, this field is required.
    Alias string
    The alias of one field.
    DocValue bool

    Whether to enable statistics. default to true.

    Note: At least one of the "full_text" and "field_search" should be specified.

    Type string
    The type of one field. Valid values: ["long", "text", "double"]. Default to "long"
    name String
    When using the json_keys field, this field is required.
    alias String
    The alias of one field.
    docValue Boolean

    Whether to enable statistics. default to true.

    Note: At least one of the "full_text" and "field_search" should be specified.

    type String
    The type of one field. Valid values: ["long", "text", "double"]. Default to "long"
    name string
    When using the json_keys field, this field is required.
    alias string
    The alias of one field.
    docValue boolean

    Whether to enable statistics. default to true.

    Note: At least one of the "full_text" and "field_search" should be specified.

    type string
    The type of one field. Valid values: ["long", "text", "double"]. Default to "long"
    name str
    When using the json_keys field, this field is required.
    alias str
    The alias of one field.
    doc_value bool

    Whether to enable statistics. default to true.

    Note: At least one of the "full_text" and "field_search" should be specified.

    type str
    The type of one field. Valid values: ["long", "text", "double"]. Default to "long"
    name String
    When using the json_keys field, this field is required.
    alias String
    The alias of one field.
    docValue Boolean

    Whether to enable statistics. default to true.

    Note: At least one of the "full_text" and "field_search" should be specified.

    type String
    The type of one field. Valid values: ["long", "text", "double"]. Default to "long"

    StoreIndexFullText, StoreIndexFullTextArgs

    CaseSensitive bool
    Whether the case sensitive. Default to false.
    IncludeChinese bool
    Whether includes the chinese. Default to false.
    Token string
    The string of several split words, like "\r", "#"
    CaseSensitive bool
    Whether the case sensitive. Default to false.
    IncludeChinese bool
    Whether includes the chinese. Default to false.
    Token string
    The string of several split words, like "\r", "#"
    caseSensitive Boolean
    Whether the case sensitive. Default to false.
    includeChinese Boolean
    Whether includes the chinese. Default to false.
    token String
    The string of several split words, like "\r", "#"
    caseSensitive boolean
    Whether the case sensitive. Default to false.
    includeChinese boolean
    Whether includes the chinese. Default to false.
    token string
    The string of several split words, like "\r", "#"
    case_sensitive bool
    Whether the case sensitive. Default to false.
    include_chinese bool
    Whether includes the chinese. Default to false.
    token str
    The string of several split words, like "\r", "#"
    caseSensitive Boolean
    Whether the case sensitive. Default to false.
    includeChinese Boolean
    Whether includes the chinese. Default to false.
    token String
    The string of several split words, like "\r", "#"

    Import

    Log store index can be imported using the id, e.g.

    $ pulumi import alicloud:log/storeIndex:StoreIndex example tf-log:tf-log-store
    

    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.57.1 published on Wednesday, Jun 26, 2024 by Pulumi