MachineGroupArgs

data class MachineGroupArgs(val identifyLists: Output<List<String>>? = null, val identifyType: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val topic: Output<String>? = null) : ConvertibleToJava<MachineGroupArgs>

Log Service manages all the ECS instances whose logs need to be collected by using the Logtail client in the form of machine groups. 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.MachineGroup;
import com.pulumi.alicloud.log.MachineGroupArgs;
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 exampleMachineGroup = new MachineGroup("exampleMachineGroup", MachineGroupArgs.builder()
.project(exampleProject.name())
.identifyType("ip")
.topic("terraform")
.identifyLists(
"10.0.0.1",
"10.0.0.2")
.build());
}
}

Module Support

You can use the existing sls-logtail module to create logtail config, machine group, install logtail on ECS instances and join instances into machine group one-click.

Import

Log machine group can be imported using the id, e.g.

$ pulumi import alicloud:log/machineGroup:MachineGroup example tf-log:tf-machine-group

Constructors

Link copied to clipboard
fun MachineGroupArgs(identifyLists: Output<List<String>>? = null, identifyType: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null, topic: Output<String>? = null)

Functions

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

Properties

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

The specific machine identification, which can be an IP address or user-defined identity.

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

The machine identification type, including IP and user-defined identity. Valid values are "ip" and "userdefined". Default to "ip".

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

The machine group name, which is unique in the same project.

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

The project name to the machine group belongs.

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

The topic of a machine group.