Skip to content

Mongodb Atlas receiver not able to pull logs issue #28851

Closed
@ammarasheikh

Description

@ammarasheikh

Component(s)

receiver/mongodbatlas

Describe the issue you're reporting

Hi,

Sorry for my lack of knowledge as I am using otelemetry mongodb atlas reciever for the first time. I am using the example yaml configuration as below: but I am keep receiving this warning and not able to retrieve any logs. I have the API keys having or owner permission. Not quite sure why I am not seeing any logs. Please help. Thanks

2023-11-01T18:11:20.383Z warn [email protected]/logs.go:229 Attempted to retrieve host logs but received 0 logs {"kind": "receiver", "name": "mongodbatlas", "data_type": "logs", "error": "EOF", "log": "mongos.gz"} ││ 2023-11-01T18:11:20.687Z warn [email protected]/logs.go:259 Attempted to retrieve audit logs but received 0 logs {"kind": "receiver", "name": "mongodbatlas", "data_type": "logs", "error": "EOF", "log": "mongos-aud │

Here's my config:
receivers:
mongodbatlas:
# existing metrics settings
public_key: ${MONGODB_ATLAS_PUBLIC_KEY}
private_key: ${MONGODB_ATLAS_PRIVATE_KEY}
granularity: PT1M
retry_on_failure:
enabled: true
# new logging settings
logs:
enabled: true #default true
projects: # List of projects to monitor logs from
- name: project_1 # Human readable name of the project
include_clusters: [] # optional list of clusters in a project to include for log collection, default empty
exclude_clusters: [] # option list of clusters in a project to exclude from log collection, default empty
collect_audit_logs: true# The user needs to enable this in Atlas so it needs to be enabled here

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions