LogViewArgs

data class LogViewArgs(val bucket: Output<String>? = null, val description: Output<String>? = null, val filter: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val parent: Output<String>? = null) : ConvertibleToJava<LogViewArgs>

Describes a view over log entries in a bucket. To get more information about LogView, see:

Example Usage

Logging Log View Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.logging.ProjectBucketConfig;
import com.pulumi.gcp.logging.ProjectBucketConfigArgs;
import com.pulumi.gcp.logging.LogView;
import com.pulumi.gcp.logging.LogViewArgs;
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 loggingLogViewProjectBucketConfig = new ProjectBucketConfig("loggingLogViewProjectBucketConfig", ProjectBucketConfigArgs.builder()
.project("my-project-name")
.location("global")
.retentionDays(30)
.bucketId("_Default")
.build());
var loggingLogViewLogView = new LogView("loggingLogViewLogView", LogViewArgs.builder()
.bucket(loggingLogViewProjectBucketConfig.id())
.description("A logging view configured with Terraform")
.filter("SOURCE(\"projects/myproject\") AND resource.type = \"gce_instance\" AND LOG_ID(\"stdout\")")
.build());
}
}

Import

LogView can be imported using any of these accepted formats:

$ pulumi import gcp:logging/logView:LogView default {{parent}}/locations/{{location}}/buckets/{{bucket}}/views/{{name}}

Constructors

Link copied to clipboard
constructor(bucket: Output<String>? = null, description: Output<String>? = null, filter: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, parent: Output<String>? = null)

Properties

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

The bucket of the resource

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

Describes this view.

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

Filter that restricts which log entries in a bucket are visible in this view. Filters are restricted to be a logical AND of ==/!= of any of the following: - originating project/folder/organization/billing account. - resource type - log id For example: SOURCE("projects/myproject") AND resource.type = "gce_instance" AND LOG_ID("stdout")

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

The location of the resource. The supported locations are: global, us-central1, us-east1, us-west1, asia-east1, europe-west1.

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

The resource name of the view. For example: \`projects/my-project/locations/global/buckets/my-bucket/views/my-view\`

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

The parent of the resource.

Functions

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