GetClusterLogging

Use this data source to retrieve information about a Rancher v2 Cluster Logging.

Example Usage

using Pulumi;
using Rancher2 = Pulumi.Rancher2;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(Rancher2.GetClusterLogging.InvokeAsync(new Rancher2.GetClusterLoggingArgs
        {
            ClusterId = "<cluster_id>",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_rancher2 as rancher2

foo = rancher2.get_cluster_logging(cluster_id="<cluster_id>")
import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";

const foo = pulumi.output(rancher2.getClusterLogging({
    clusterId: "<cluster_id>",
}, { async: true }));

Using GetClusterLogging

function getClusterLogging(args: GetClusterLoggingArgs, opts?: InvokeOptions): Promise<GetClusterLoggingResult>
function  get_cluster_logging(cluster_id=None, opts=None)
func LookupClusterLogging(ctx *Context, args *LookupClusterLoggingArgs, opts ...InvokeOption) (*LookupClusterLoggingResult, error)

Note: This function is named LookupClusterLogging in the Go SDK.

public static class GetClusterLogging {
    public static Task<GetClusterLoggingResult> InvokeAsync(GetClusterLoggingArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ClusterId string

The cluster id to configure logging (string)

ClusterId string

The cluster id to configure logging (string)

clusterId string

The cluster id to configure logging (string)

cluster_id str

The cluster id to configure logging (string)

GetClusterLogging Result

The following output properties are available:

Annotations Dictionary<string, object>

(Computed) Annotations for Cluster Logging object (map)

ClusterId string
CustomTargetConfig GetClusterLoggingCustomTargetConfig
ElasticsearchConfig GetClusterLoggingElasticsearchConfig

(Computed) The elasticsearch config for Cluster Logging. For kind = elasticsearch (list maxitems:1)

EnableJsonParsing bool
FluentdConfig GetClusterLoggingFluentdConfig

(Computed) The fluentd config for Cluster Logging. For kind = fluentd (list maxitems:1)

Id string

The provider-assigned unique ID for this managed resource.

KafkaConfig GetClusterLoggingKafkaConfig

(Computed) The kafka config for Cluster Logging. For kind = kafka (list maxitems:1)

Kind string

(Computed) The kind of the Cluster Logging. elasticsearch, fluentd, kafka, splunk and syslog are supported (string)

Labels Dictionary<string, object>

(Computed) Labels for Cluster Logging object (map)

Name string

(Computed) The name of the cluster logging config (string)

NamespaceId string

(Computed) The namespace id from cluster logging (string)

OutputFlushInterval int

(Computed) How often buffered logs would be flushed. Default: 3 seconds (int)

OutputTags Dictionary<string, object>

(computed) The output tags for Cluster Logging (map)

SplunkConfig GetClusterLoggingSplunkConfig

(Computed) The splunk config for Cluster Logging. For kind = splunk (list maxitems:1)

SyslogConfig GetClusterLoggingSyslogConfig

(Computed) The syslog config for Cluster Logging. For kind = syslog (list maxitems:1)

Annotations map[string]interface{}

(Computed) Annotations for Cluster Logging object (map)

ClusterId string
CustomTargetConfig GetClusterLoggingCustomTargetConfig
ElasticsearchConfig GetClusterLoggingElasticsearchConfig

(Computed) The elasticsearch config for Cluster Logging. For kind = elasticsearch (list maxitems:1)

EnableJsonParsing bool
FluentdConfig GetClusterLoggingFluentdConfig

(Computed) The fluentd config for Cluster Logging. For kind = fluentd (list maxitems:1)

Id string

The provider-assigned unique ID for this managed resource.

KafkaConfig GetClusterLoggingKafkaConfig

(Computed) The kafka config for Cluster Logging. For kind = kafka (list maxitems:1)

Kind string

(Computed) The kind of the Cluster Logging. elasticsearch, fluentd, kafka, splunk and syslog are supported (string)

Labels map[string]interface{}

(Computed) Labels for Cluster Logging object (map)

Name string

(Computed) The name of the cluster logging config (string)

NamespaceId string

(Computed) The namespace id from cluster logging (string)

OutputFlushInterval int

(Computed) How often buffered logs would be flushed. Default: 3 seconds (int)

OutputTags map[string]interface{}

(computed) The output tags for Cluster Logging (map)

SplunkConfig GetClusterLoggingSplunkConfig

(Computed) The splunk config for Cluster Logging. For kind = splunk (list maxitems:1)

SyslogConfig GetClusterLoggingSyslogConfig

(Computed) The syslog config for Cluster Logging. For kind = syslog (list maxitems:1)

annotations {[key: string]: any}

(Computed) Annotations for Cluster Logging object (map)

clusterId string
customTargetConfig GetClusterLoggingCustomTargetConfig
elasticsearchConfig GetClusterLoggingElasticsearchConfig

(Computed) The elasticsearch config for Cluster Logging. For kind = elasticsearch (list maxitems:1)

enableJsonParsing boolean
fluentdConfig GetClusterLoggingFluentdConfig

(Computed) The fluentd config for Cluster Logging. For kind = fluentd (list maxitems:1)

id string

The provider-assigned unique ID for this managed resource.

kafkaConfig GetClusterLoggingKafkaConfig

(Computed) The kafka config for Cluster Logging. For kind = kafka (list maxitems:1)

kind string

(Computed) The kind of the Cluster Logging. elasticsearch, fluentd, kafka, splunk and syslog are supported (string)

labels {[key: string]: any}

(Computed) Labels for Cluster Logging object (map)

name string

(Computed) The name of the cluster logging config (string)

namespaceId string

(Computed) The namespace id from cluster logging (string)

outputFlushInterval number

(Computed) How often buffered logs would be flushed. Default: 3 seconds (int)

outputTags {[key: string]: any}

(computed) The output tags for Cluster Logging (map)

splunkConfig GetClusterLoggingSplunkConfig

(Computed) The splunk config for Cluster Logging. For kind = splunk (list maxitems:1)

syslogConfig GetClusterLoggingSyslogConfig

(Computed) The syslog config for Cluster Logging. For kind = syslog (list maxitems:1)

annotations Dict[str, Any]

(Computed) Annotations for Cluster Logging object (map)

cluster_id str
custom_target_config Dict[GetClusterLoggingCustomTargetConfig]
elasticsearch_config Dict[GetClusterLoggingElasticsearchConfig]

(Computed) The elasticsearch config for Cluster Logging. For kind = elasticsearch (list maxitems:1)

enable_json_parsing bool
fluentd_config Dict[GetClusterLoggingFluentdConfig]

(Computed) The fluentd config for Cluster Logging. For kind = fluentd (list maxitems:1)

id str

The provider-assigned unique ID for this managed resource.

kafka_config Dict[GetClusterLoggingKafkaConfig]

(Computed) The kafka config for Cluster Logging. For kind = kafka (list maxitems:1)

kind str

(Computed) The kind of the Cluster Logging. elasticsearch, fluentd, kafka, splunk and syslog are supported (string)

labels Dict[str, Any]

(Computed) Labels for Cluster Logging object (map)

name str

(Computed) The name of the cluster logging config (string)

namespace_id str

(Computed) The namespace id from cluster logging (string)

output_flush_interval float

(Computed) How often buffered logs would be flushed. Default: 3 seconds (int)

output_tags Dict[str, Any]

(computed) The output tags for Cluster Logging (map)

splunk_config Dict[GetClusterLoggingSplunkConfig]

(Computed) The splunk config for Cluster Logging. For kind = splunk (list maxitems:1)

syslog_config Dict[GetClusterLoggingSyslogConfig]

(Computed) The syslog config for Cluster Logging. For kind = syslog (list maxitems:1)

Supporting Types

GetClusterLoggingCustomTargetConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Content string
Certificate string
ClientCert string
ClientKey string
Content string
Certificate string
ClientCert string
ClientKey string
content string
certificate string
clientCert string
clientKey string
content str
certificate str
clientCert str
clientKey str

GetClusterLoggingElasticsearchConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Endpoint string
SslVerify bool
AuthPassword string
AuthUsername string
Certificate string
ClientCert string
ClientKey string
ClientKeyPass string
DateFormat string
IndexPrefix string
SslVersion string
Endpoint string
SslVerify bool
AuthPassword string
AuthUsername string
Certificate string
ClientCert string
ClientKey string
ClientKeyPass string
DateFormat string
IndexPrefix string
SslVersion string
endpoint string
sslVerify boolean
authPassword string
authUsername string
certificate string
clientCert string
clientKey string
clientKeyPass string
dateFormat string
indexPrefix string
sslVersion string
endpoint str
sslVerify bool
authPassword str
authUsername str
certificate str
clientCert str
clientKey str
clientKeyPass str
dateFormat str
indexPrefix str
sslVersion str

GetClusterLoggingFluentdConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

FluentServers List<GetClusterLoggingFluentdConfigFluentServerArgs>
Certificate string
Compress bool
EnableTls bool
FluentServers []GetClusterLoggingFluentdConfigFluentServer
Certificate string
Compress bool
EnableTls bool
fluentServers GetClusterLoggingFluentdConfigFluentServer[]
certificate string
compress boolean
enableTls boolean
fluentServers List[GetClusterLoggingFluentdConfigFluentServer]
certificate str
compress bool
enableTls bool

GetClusterLoggingFluentdConfigFluentServer

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Endpoint string
Hostname string
Password string
SharedKey string
Standby bool
Username string
Weight int
Endpoint string
Hostname string
Password string
SharedKey string
Standby bool
Username string
Weight int
endpoint string
hostname string
password string
sharedKey string
standby boolean
username string
weight number
endpoint str
hostname str
password str
sharedKey str
standby bool
username str
weight float

GetClusterLoggingKafkaConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Topic string
BrokerEndpoints List<string>
Certificate string
ClientCert string
ClientKey string
ZookeeperEndpoint string
Topic string
BrokerEndpoints []string
Certificate string
ClientCert string
ClientKey string
ZookeeperEndpoint string
topic string
brokerEndpoints string[]
certificate string
clientCert string
clientKey string
zookeeperEndpoint string
topic str
brokerEndpoints List[str]
certificate str
clientCert str
clientKey str
zookeeperEndpoint str

GetClusterLoggingSplunkConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Endpoint string
SslVerify bool
Token string
Certificate string
ClientCert string
ClientKey string
ClientKeyPass string
Index string
Source string
Endpoint string
SslVerify bool
Token string
Certificate string
ClientCert string
ClientKey string
ClientKeyPass string
Index string
Source string
endpoint string
sslVerify boolean
token string
certificate string
clientCert string
clientKey string
clientKeyPass string
index string
source string
endpoint str
sslVerify bool
token str
certificate str
clientCert str
clientKey str
clientKeyPass str
index str
source str

GetClusterLoggingSyslogConfig

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Endpoint string
SslVerify bool
Certificate string
ClientCert string
ClientKey string
Program string
Protocol string
Severity string
Token string
Endpoint string
SslVerify bool
Certificate string
ClientCert string
ClientKey string
Program string
Protocol string
Severity string
Token string
endpoint string
sslVerify boolean
certificate string
clientCert string
clientKey string
program string
protocol string
severity string
token string
endpoint str
sslVerify bool
certificate str
clientCert str
clientKey str
program str
protocol str
severity str
token str

Package Details

Repository
https://github.com/pulumi/pulumi-rancher2
License
Apache-2.0
Notes
This Pulumi package is based on the rancher2 Terraform Provider.