How to connect with server which is Managed by Mongodb

I can get the IP of server with the help of: ping -c 1 <hostname> , But now how I can connect to the server that is not self-hosted.
I wanted to see the logs on server : /var/log/mongodb/mongodb.log.
How can I see this.

Thanks in advance.

Hi @Shivam_Tiwari2

You do not get server access when using Atlas.

You may be able to view logs through the Atlas gui. https://www.mongodb.com/docs/atlas/mongodb-logs/ downloading logs is dependent on a dedicated tier(M10+) though.

Using the cli you can view the last 1024 events with the shell helper.

show log global

1 Like

Thanks @chris for this solution.