1. Packages
  2. Mongodbatlas Provider
  3. API Docs
  4. getLogIntegrations
Viewing docs for MongoDB Atlas v4.5.0
published on Thursday, Mar 12, 2026 by Pulumi
mongodbatlas logo
Viewing docs for MongoDB Atlas v4.5.0
published on Thursday, Mar 12, 2026 by Pulumi

    mongodbatlas.getLogIntegrations describes all log integrations configured at the project level. Supported integration types include AWS S3, Google Cloud Storage, Azure Blob Storage, Datadog, Splunk, and OpenTelemetry.

    To use this data source, the requesting Service Account or API Key must have the Organization Owner or Project Owner role.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as mongodbatlas from "@pulumi/mongodbatlas";
    
    const example = mongodbatlas.getLogIntegrations({
        projectId: exampleMongodbatlasLogIntegration.projectId,
    });
    export const logIntegrationIds = example.then(example => .map(r => (r.integrationId)));
    
    import pulumi
    import pulumi_mongodbatlas as mongodbatlas
    
    example = mongodbatlas.get_log_integrations(project_id=example_mongodbatlas_log_integration["projectId"])
    pulumi.export("logIntegrationIds", [r.integration_id for r in example.results])
    
    Example coming soon!
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Mongodbatlas = Pulumi.Mongodbatlas;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Mongodbatlas.GetLogIntegrations.Invoke(new()
        {
            ProjectId = exampleMongodbatlasLogIntegration.ProjectId,
        });
    
        return new Dictionary<string, object?>
        {
            ["logIntegrationIds"] = .Select(r => 
            {
                return r.IntegrationId;
            }).ToList(),
        };
    });
    
    Example coming soon!
    
    Example coming soon!
    

    Further Examples

    • Log Integration Examples

    Using getLogIntegrations

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getLogIntegrations(args: GetLogIntegrationsArgs, opts?: InvokeOptions): Promise<GetLogIntegrationsResult>
    function getLogIntegrationsOutput(args: GetLogIntegrationsOutputArgs, opts?: InvokeOptions): Output<GetLogIntegrationsResult>
    def get_log_integrations(integration_type: Optional[str] = None,
                             project_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetLogIntegrationsResult
    def get_log_integrations_output(integration_type: Optional[pulumi.Input[str]] = None,
                             project_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetLogIntegrationsResult]
    func LookupLogIntegrations(ctx *Context, args *LookupLogIntegrationsArgs, opts ...InvokeOption) (*LookupLogIntegrationsResult, error)
    func LookupLogIntegrationsOutput(ctx *Context, args *LookupLogIntegrationsOutputArgs, opts ...InvokeOption) LookupLogIntegrationsResultOutput

    > Note: This function is named LookupLogIntegrations in the Go SDK.

    public static class GetLogIntegrations 
    {
        public static Task<GetLogIntegrationsResult> InvokeAsync(GetLogIntegrationsArgs args, InvokeOptions? opts = null)
        public static Output<GetLogIntegrationsResult> Invoke(GetLogIntegrationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogIntegrationsResult> getLogIntegrations(GetLogIntegrationsArgs args, InvokeOptions options)
    public static Output<GetLogIntegrationsResult> getLogIntegrations(GetLogIntegrationsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: mongodbatlas:index/getLogIntegrations:getLogIntegrations
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project.
    IntegrationType string
    Optional filter by integration type (e.g., S3_LOG_EXPORT).
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project.
    IntegrationType string
    Optional filter by integration type (e.g., S3_LOG_EXPORT).
    projectId String
    Unique 24-hexadecimal digit string that identifies your project.
    integrationType String
    Optional filter by integration type (e.g., S3_LOG_EXPORT).
    projectId string
    Unique 24-hexadecimal digit string that identifies your project.
    integrationType string
    Optional filter by integration type (e.g., S3_LOG_EXPORT).
    project_id str
    Unique 24-hexadecimal digit string that identifies your project.
    integration_type str
    Optional filter by integration type (e.g., S3_LOG_EXPORT).
    projectId String
    Unique 24-hexadecimal digit string that identifies your project.
    integrationType String
    Optional filter by integration type (e.g., S3_LOG_EXPORT).

    getLogIntegrations Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project.
    Results List<GetLogIntegrationsResult>
    List of returned documents that MongoDB Cloud provides when completing this request.
    IntegrationType string
    Optional filter by integration type (e.g., S3_LOG_EXPORT).
    Id string
    The provider-assigned unique ID for this managed resource.
    ProjectId string
    Unique 24-hexadecimal digit string that identifies your project.
    Results []GetLogIntegrationsResult
    List of returned documents that MongoDB Cloud provides when completing this request.
    IntegrationType string
    Optional filter by integration type (e.g., S3_LOG_EXPORT).
    id String
    The provider-assigned unique ID for this managed resource.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project.
    results List<GetLogIntegrationsResult>
    List of returned documents that MongoDB Cloud provides when completing this request.
    integrationType String
    Optional filter by integration type (e.g., S3_LOG_EXPORT).
    id string
    The provider-assigned unique ID for this managed resource.
    projectId string
    Unique 24-hexadecimal digit string that identifies your project.
    results GetLogIntegrationsResult[]
    List of returned documents that MongoDB Cloud provides when completing this request.
    integrationType string
    Optional filter by integration type (e.g., S3_LOG_EXPORT).
    id str
    The provider-assigned unique ID for this managed resource.
    project_id str
    Unique 24-hexadecimal digit string that identifies your project.
    results Sequence[GetLogIntegrationsResult]
    List of returned documents that MongoDB Cloud provides when completing this request.
    integration_type str
    Optional filter by integration type (e.g., S3_LOG_EXPORT).
    id String
    The provider-assigned unique ID for this managed resource.
    projectId String
    Unique 24-hexadecimal digit string that identifies your project.
    results List<Property Map>
    List of returned documents that MongoDB Cloud provides when completing this request.
    integrationType String
    Optional filter by integration type (e.g., S3_LOG_EXPORT).

    Supporting Types

    GetLogIntegrationsResult

    ApiKey string
    Applies to type: DATADOG_LOG_EXPORT. API key for authentication.
    BucketName string
    Applies to type: GCS_LOG_EXPORT, S3_LOG_EXPORT. Name of the bucket to store log files.
    HecToken string
    Applies to type: SPLUNK_LOG_EXPORT. HTTP Event Collector (HEC) token for authentication.
    HecUrl string
    Applies to type: SPLUNK_LOG_EXPORT. HTTP Event Collector (HEC) endpoint URL.
    IamRoleId string
    Applies to type: S3_LOG_EXPORT. Unique 24-character hexadecimal string that identifies the AWS IAM role that Atlas uses to access the S3 bucket.
    IntegrationId string
    Unique 24-character hexadecimal digit string that identifies the log integration configuration.
    KmsKey string
    Applies to type: S3_LOG_EXPORT. AWS KMS key ID or ARN for server-side encryption (optional). If not provided, uses bucket default encryption settings.
    LogTypes List<string>
    Array of log types exported by this integration.
    OtelEndpoint string
    Applies to type: OTEL_LOG_EXPORT. OpenTelemetry collector endpoint URL.
    OtelSuppliedHeaders List<GetLogIntegrationsResultOtelSuppliedHeader>
    Applies to type: OTEL_LOG_EXPORT. HTTP headers for authentication and configuration. Maximum 10 headers, total size limit 2KB.
    PrefixPath string
    Applies to type: AZURE_LOG_EXPORT, GCS_LOG_EXPORT, S3_LOG_EXPORT. Path prefix where the log files will be stored. Atlas will add further sub-directories based on the log type.
    Region string
    Applies to type: DATADOG_LOG_EXPORT. Datadog site/region for log ingestion. Valid values: US1, US3, US5, EU, AP1, AP2, US1_FED.
    RoleId string
    Applies to type: AZURE_LOG_EXPORT, GCS_LOG_EXPORT. Unique 24-character hexadecimal string that identifies the Atlas Cloud Provider Access role.
    StorageAccountName string
    Applies to type: AZURE_LOG_EXPORT. Storage account name where logs will be stored.
    StorageContainerName string
    Applies to type: AZURE_LOG_EXPORT. Storage container name for log files.
    Type string
    Human-readable label that identifies the service to which you want to integrate with Atlas. The value must match the log integration type. This value cannot be modified after the integration is created.
    ApiKey string
    Applies to type: DATADOG_LOG_EXPORT. API key for authentication.
    BucketName string
    Applies to type: GCS_LOG_EXPORT, S3_LOG_EXPORT. Name of the bucket to store log files.
    HecToken string
    Applies to type: SPLUNK_LOG_EXPORT. HTTP Event Collector (HEC) token for authentication.
    HecUrl string
    Applies to type: SPLUNK_LOG_EXPORT. HTTP Event Collector (HEC) endpoint URL.
    IamRoleId string
    Applies to type: S3_LOG_EXPORT. Unique 24-character hexadecimal string that identifies the AWS IAM role that Atlas uses to access the S3 bucket.
    IntegrationId string
    Unique 24-character hexadecimal digit string that identifies the log integration configuration.
    KmsKey string
    Applies to type: S3_LOG_EXPORT. AWS KMS key ID or ARN for server-side encryption (optional). If not provided, uses bucket default encryption settings.
    LogTypes []string
    Array of log types exported by this integration.
    OtelEndpoint string
    Applies to type: OTEL_LOG_EXPORT. OpenTelemetry collector endpoint URL.
    OtelSuppliedHeaders []GetLogIntegrationsResultOtelSuppliedHeader
    Applies to type: OTEL_LOG_EXPORT. HTTP headers for authentication and configuration. Maximum 10 headers, total size limit 2KB.
    PrefixPath string
    Applies to type: AZURE_LOG_EXPORT, GCS_LOG_EXPORT, S3_LOG_EXPORT. Path prefix where the log files will be stored. Atlas will add further sub-directories based on the log type.
    Region string
    Applies to type: DATADOG_LOG_EXPORT. Datadog site/region for log ingestion. Valid values: US1, US3, US5, EU, AP1, AP2, US1_FED.
    RoleId string
    Applies to type: AZURE_LOG_EXPORT, GCS_LOG_EXPORT. Unique 24-character hexadecimal string that identifies the Atlas Cloud Provider Access role.
    StorageAccountName string
    Applies to type: AZURE_LOG_EXPORT. Storage account name where logs will be stored.
    StorageContainerName string
    Applies to type: AZURE_LOG_EXPORT. Storage container name for log files.
    Type string
    Human-readable label that identifies the service to which you want to integrate with Atlas. The value must match the log integration type. This value cannot be modified after the integration is created.
    apiKey String
    Applies to type: DATADOG_LOG_EXPORT. API key for authentication.
    bucketName String
    Applies to type: GCS_LOG_EXPORT, S3_LOG_EXPORT. Name of the bucket to store log files.
    hecToken String
    Applies to type: SPLUNK_LOG_EXPORT. HTTP Event Collector (HEC) token for authentication.
    hecUrl String
    Applies to type: SPLUNK_LOG_EXPORT. HTTP Event Collector (HEC) endpoint URL.
    iamRoleId String
    Applies to type: S3_LOG_EXPORT. Unique 24-character hexadecimal string that identifies the AWS IAM role that Atlas uses to access the S3 bucket.
    integrationId String
    Unique 24-character hexadecimal digit string that identifies the log integration configuration.
    kmsKey String
    Applies to type: S3_LOG_EXPORT. AWS KMS key ID or ARN for server-side encryption (optional). If not provided, uses bucket default encryption settings.
    logTypes List<String>
    Array of log types exported by this integration.
    otelEndpoint String
    Applies to type: OTEL_LOG_EXPORT. OpenTelemetry collector endpoint URL.
    otelSuppliedHeaders List<GetLogIntegrationsResultOtelSuppliedHeader>
    Applies to type: OTEL_LOG_EXPORT. HTTP headers for authentication and configuration. Maximum 10 headers, total size limit 2KB.
    prefixPath String
    Applies to type: AZURE_LOG_EXPORT, GCS_LOG_EXPORT, S3_LOG_EXPORT. Path prefix where the log files will be stored. Atlas will add further sub-directories based on the log type.
    region String
    Applies to type: DATADOG_LOG_EXPORT. Datadog site/region for log ingestion. Valid values: US1, US3, US5, EU, AP1, AP2, US1_FED.
    roleId String
    Applies to type: AZURE_LOG_EXPORT, GCS_LOG_EXPORT. Unique 24-character hexadecimal string that identifies the Atlas Cloud Provider Access role.
    storageAccountName String
    Applies to type: AZURE_LOG_EXPORT. Storage account name where logs will be stored.
    storageContainerName String
    Applies to type: AZURE_LOG_EXPORT. Storage container name for log files.
    type String
    Human-readable label that identifies the service to which you want to integrate with Atlas. The value must match the log integration type. This value cannot be modified after the integration is created.
    apiKey string
    Applies to type: DATADOG_LOG_EXPORT. API key for authentication.
    bucketName string
    Applies to type: GCS_LOG_EXPORT, S3_LOG_EXPORT. Name of the bucket to store log files.
    hecToken string
    Applies to type: SPLUNK_LOG_EXPORT. HTTP Event Collector (HEC) token for authentication.
    hecUrl string
    Applies to type: SPLUNK_LOG_EXPORT. HTTP Event Collector (HEC) endpoint URL.
    iamRoleId string
    Applies to type: S3_LOG_EXPORT. Unique 24-character hexadecimal string that identifies the AWS IAM role that Atlas uses to access the S3 bucket.
    integrationId string
    Unique 24-character hexadecimal digit string that identifies the log integration configuration.
    kmsKey string
    Applies to type: S3_LOG_EXPORT. AWS KMS key ID or ARN for server-side encryption (optional). If not provided, uses bucket default encryption settings.
    logTypes string[]
    Array of log types exported by this integration.
    otelEndpoint string
    Applies to type: OTEL_LOG_EXPORT. OpenTelemetry collector endpoint URL.
    otelSuppliedHeaders GetLogIntegrationsResultOtelSuppliedHeader[]
    Applies to type: OTEL_LOG_EXPORT. HTTP headers for authentication and configuration. Maximum 10 headers, total size limit 2KB.
    prefixPath string
    Applies to type: AZURE_LOG_EXPORT, GCS_LOG_EXPORT, S3_LOG_EXPORT. Path prefix where the log files will be stored. Atlas will add further sub-directories based on the log type.
    region string
    Applies to type: DATADOG_LOG_EXPORT. Datadog site/region for log ingestion. Valid values: US1, US3, US5, EU, AP1, AP2, US1_FED.
    roleId string
    Applies to type: AZURE_LOG_EXPORT, GCS_LOG_EXPORT. Unique 24-character hexadecimal string that identifies the Atlas Cloud Provider Access role.
    storageAccountName string
    Applies to type: AZURE_LOG_EXPORT. Storage account name where logs will be stored.
    storageContainerName string
    Applies to type: AZURE_LOG_EXPORT. Storage container name for log files.
    type string
    Human-readable label that identifies the service to which you want to integrate with Atlas. The value must match the log integration type. This value cannot be modified after the integration is created.
    api_key str
    Applies to type: DATADOG_LOG_EXPORT. API key for authentication.
    bucket_name str
    Applies to type: GCS_LOG_EXPORT, S3_LOG_EXPORT. Name of the bucket to store log files.
    hec_token str
    Applies to type: SPLUNK_LOG_EXPORT. HTTP Event Collector (HEC) token for authentication.
    hec_url str
    Applies to type: SPLUNK_LOG_EXPORT. HTTP Event Collector (HEC) endpoint URL.
    iam_role_id str
    Applies to type: S3_LOG_EXPORT. Unique 24-character hexadecimal string that identifies the AWS IAM role that Atlas uses to access the S3 bucket.
    integration_id str
    Unique 24-character hexadecimal digit string that identifies the log integration configuration.
    kms_key str
    Applies to type: S3_LOG_EXPORT. AWS KMS key ID or ARN for server-side encryption (optional). If not provided, uses bucket default encryption settings.
    log_types Sequence[str]
    Array of log types exported by this integration.
    otel_endpoint str
    Applies to type: OTEL_LOG_EXPORT. OpenTelemetry collector endpoint URL.
    otel_supplied_headers Sequence[GetLogIntegrationsResultOtelSuppliedHeader]
    Applies to type: OTEL_LOG_EXPORT. HTTP headers for authentication and configuration. Maximum 10 headers, total size limit 2KB.
    prefix_path str
    Applies to type: AZURE_LOG_EXPORT, GCS_LOG_EXPORT, S3_LOG_EXPORT. Path prefix where the log files will be stored. Atlas will add further sub-directories based on the log type.
    region str
    Applies to type: DATADOG_LOG_EXPORT. Datadog site/region for log ingestion. Valid values: US1, US3, US5, EU, AP1, AP2, US1_FED.
    role_id str
    Applies to type: AZURE_LOG_EXPORT, GCS_LOG_EXPORT. Unique 24-character hexadecimal string that identifies the Atlas Cloud Provider Access role.
    storage_account_name str
    Applies to type: AZURE_LOG_EXPORT. Storage account name where logs will be stored.
    storage_container_name str
    Applies to type: AZURE_LOG_EXPORT. Storage container name for log files.
    type str
    Human-readable label that identifies the service to which you want to integrate with Atlas. The value must match the log integration type. This value cannot be modified after the integration is created.
    apiKey String
    Applies to type: DATADOG_LOG_EXPORT. API key for authentication.
    bucketName String
    Applies to type: GCS_LOG_EXPORT, S3_LOG_EXPORT. Name of the bucket to store log files.
    hecToken String
    Applies to type: SPLUNK_LOG_EXPORT. HTTP Event Collector (HEC) token for authentication.
    hecUrl String
    Applies to type: SPLUNK_LOG_EXPORT. HTTP Event Collector (HEC) endpoint URL.
    iamRoleId String
    Applies to type: S3_LOG_EXPORT. Unique 24-character hexadecimal string that identifies the AWS IAM role that Atlas uses to access the S3 bucket.
    integrationId String
    Unique 24-character hexadecimal digit string that identifies the log integration configuration.
    kmsKey String
    Applies to type: S3_LOG_EXPORT. AWS KMS key ID or ARN for server-side encryption (optional). If not provided, uses bucket default encryption settings.
    logTypes List<String>
    Array of log types exported by this integration.
    otelEndpoint String
    Applies to type: OTEL_LOG_EXPORT. OpenTelemetry collector endpoint URL.
    otelSuppliedHeaders List<Property Map>
    Applies to type: OTEL_LOG_EXPORT. HTTP headers for authentication and configuration. Maximum 10 headers, total size limit 2KB.
    prefixPath String
    Applies to type: AZURE_LOG_EXPORT, GCS_LOG_EXPORT, S3_LOG_EXPORT. Path prefix where the log files will be stored. Atlas will add further sub-directories based on the log type.
    region String
    Applies to type: DATADOG_LOG_EXPORT. Datadog site/region for log ingestion. Valid values: US1, US3, US5, EU, AP1, AP2, US1_FED.
    roleId String
    Applies to type: AZURE_LOG_EXPORT, GCS_LOG_EXPORT. Unique 24-character hexadecimal string that identifies the Atlas Cloud Provider Access role.
    storageAccountName String
    Applies to type: AZURE_LOG_EXPORT. Storage account name where logs will be stored.
    storageContainerName String
    Applies to type: AZURE_LOG_EXPORT. Storage container name for log files.
    type String
    Human-readable label that identifies the service to which you want to integrate with Atlas. The value must match the log integration type. This value cannot be modified after the integration is created.

    GetLogIntegrationsResultOtelSuppliedHeader

    Name string
    Header name.
    Value string
    Header value.
    Name string
    Header name.
    Value string
    Header value.
    name String
    Header name.
    value String
    Header value.
    name string
    Header name.
    value string
    Header value.
    name str
    Header name.
    value str
    Header value.
    name String
    Header name.
    value String
    Header value.

    Package Details

    Repository
    MongoDB Atlas pulumi/pulumi-mongodbatlas
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mongodbatlas Terraform Provider.
    mongodbatlas logo
    Viewing docs for MongoDB Atlas v4.5.0
    published on Thursday, Mar 12, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.