Class ProjectLogging
Provides a Rancher v2 Project Logging resource. This can be used to create Project Logging for Rancher v2 environments and retrieve their information.
Example Usage
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
class MyStack : Stack
{
public MyStack()
{
// Create a new rancher2 Project Logging
var foo = new Rancher2.ProjectLogging("foo", new Rancher2.ProjectLoggingArgs
{
Kind = "syslog",
ProjectId = "<project_id>",
SyslogConfig = new Rancher2.Inputs.ProjectLoggingSyslogConfigArgs
{
Endpoint = "<syslog_endpoint>",
Protocol = "udp",
Severity = "notice",
SslVerify = false,
},
});
}
}
Inherited Members
Namespace: Pulumi.Rancher2
Assembly: Pulumi.Rancher2.dll
Syntax
public class ProjectLogging : CustomResource
Constructors
View SourceProjectLogging(String, ProjectLoggingArgs, CustomResourceOptions)
Create a ProjectLogging resource with the given unique name, arguments, and options.
Declaration
public ProjectLogging(string name, ProjectLoggingArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ProjectLoggingArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAnnotations
Annotations for Project Logging object (map)
Declaration
public Output<ImmutableDictionary<string, object>> Annotations { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
CustomTargetConfig
The custom target config for Cluster Logging. For kind = custom. Conflicts with elasticsearch_config, fluentd_config, kafka_config, splunk_config and syslog_config (list maxitems:1)
Declaration
public Output<ProjectLoggingCustomTargetConfig> CustomTargetConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<ProjectLoggingCustomTargetConfig> |
ElasticsearchConfig
The elasticsearch config for Project Logging. For kind = elasticsearch. Conflicts with custom_target_config, fluentd_config, kafka_config, splunk_config and syslog_config (list maxitems:1)
Declaration
public Output<ProjectLoggingElasticsearchConfig> ElasticsearchConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<ProjectLoggingElasticsearchConfig> |
EnableJsonParsing
Enable json log parsing. Default: false (bool)
Declaration
public Output<bool?> EnableJsonParsing { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
FluentdConfig
The fluentd config for Project Logging. For kind = fluentd. Conflicts with custom_target_config, elasticsearch_config, kafka_config, splunk_config and syslog_config (list maxitems:1)
Declaration
public Output<ProjectLoggingFluentdConfig> FluentdConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<ProjectLoggingFluentdConfig> |
KafkaConfig
The kafka config for Project Logging. For kind = kafka. Conflicts with custom_target_config, elasticsearch_config, fluentd_config, splunk_config and syslog_config (list maxitems:1)
Declaration
public Output<ProjectLoggingKafkaConfig> KafkaConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<ProjectLoggingKafkaConfig> |
Kind
The kind of the Project Logging. elasticsearch, fluentd, kafka, splunk and syslog are supported (string)
Declaration
public Output<string> Kind { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Labels
Labels for Project Logging object (map)
Declaration
public Output<ImmutableDictionary<string, object>> Labels { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Name
The name of the Project Logging config (string)
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NamespaceId
The namespace id from Project logging (string)
Declaration
public Output<string> NamespaceId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OutputFlushInterval
How often buffered logs would be flushed. Default: 3 seconds (int)
Declaration
public Output<int?> OutputFlushInterval { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
OutputTags
The output tags for Project Logging (map)
Declaration
public Output<ImmutableDictionary<string, object>> OutputTags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
ProjectId
The project id to configure logging (string)
Declaration
public Output<string> ProjectId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SplunkConfig
The splunk config for Project Logging. For kind = splunk. Conflicts with custom_target_config, elasticsearch_config, fluentd_config, kafka_config, and syslog_config (list maxitems:1)
Declaration
public Output<ProjectLoggingSplunkConfig> SplunkConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<ProjectLoggingSplunkConfig> |
SyslogConfig
The syslog config for Project Logging. For kind = syslog. Conflicts with custom_target_config, elasticsearch_config, fluentd_config, kafka_config, and splunk_config (list maxitems:1)
Declaration
public Output<ProjectLoggingSyslogConfig> SyslogConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<ProjectLoggingSyslogConfig> |
Methods
View SourceGet(String, Input<String>, ProjectLoggingState, CustomResourceOptions)
Get an existing ProjectLogging resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ProjectLogging Get(string name, Input<string> id, ProjectLoggingState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ProjectLoggingState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ProjectLogging |