StoreIndexArgs

data class StoreIndexArgs(val fieldSearches: Output<List<StoreIndexFieldSearchArgs>>? = null, val fullText: Output<StoreIndexFullTextArgs>? = null, val logstore: Output<String>? = null, val project: Output<String>? = null) : ConvertibleToJava<StoreIndexArgs>

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

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.RandomInteger;
import com.pulumi.random.RandomIntegerArgs;
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 RandomInteger("default", RandomIntegerArgs.builder()
.max(99999)
.min(10000)
.build());
var exampleProject = new Project("exampleProject", ProjectArgs.builder()
.description("terraform-example")
.build());
var exampleStore = new Store("exampleStore", StoreArgs.builder()
.project(exampleProject.name())
.shardCount(3)
.autoSplit(true)
.maxSplitShardCount(60)
.appendMeta(true)
.build());
var exampleStoreIndex = new StoreIndex("exampleStoreIndex", StoreIndexArgs.builder()
.project(exampleProject.name())
.logstore(exampleStore.name())
.fullText(StoreIndexFullTextArgs.builder()
.caseSensitive(true)
.token("""
#$^*
""")
.build())
.fieldSearches(StoreIndexFieldSearchArgs.builder()
.name("terraform-example")
.enableAnalytics(true)
.type("text")
.token("""
#$^*
""")
.build())
.build());
}
}

Module Support

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

Import

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

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

Constructors

Link copied to clipboard
fun StoreIndexArgs(fieldSearches: Output<List<StoreIndexFieldSearchArgs>>? = null, fullText: Output<StoreIndexFullTextArgs>? = null, logstore: Output<String>? = null, project: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): StoreIndexArgs

Properties

Link copied to clipboard

List configurations of field search index. Valid item as follows:

Link copied to clipboard
val fullText: Output<StoreIndexFullTextArgs>? = null

The configuration of full text index. Valid item as follows:

Link copied to clipboard
val logstore: Output<String>? = null

The log store name to the query index belongs.

Link copied to clipboard
val project: Output<String>? = null

The project name to the log store belongs.