I’ve configured the verbosity of our 5 member replica set to level 0, but our log files keep filling with thousands of noisy “connection ended” and “connection accepted” messages. They appear perfectly innocent, but the sheer amount of these logs really makes no sense.
Is it really normal & intentional for MongoDB to log all these near-identical log messages, since apparently there is no recommended method to disable them? Our old production cluster running 3.x doesn’t do this.
Do these log messages indicate a problem in out MongoDB setup?
Example logs
{"t":{"$date":"2022-04-07T09:44:21.765+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55534","uuid":"970ac484-45f4-4bfd-a1cc-4e59d33bbf53","connectionId":1610,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:21.765+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55536","uuid":"b5b6b395-bba8-4b43-bb7d-75e6d5d44b03","connectionId":1611,"connectionCount":346}}
{"t":{"$date":"2022-04-07T09:44:21.775+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1610","msg":"Connection ended","attr":{"remote":"127.0.0.1:55534","uuid":"970ac484-45f4-4bfd-a1cc-4e59d33bbf53","connectionId":1610,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:21.776+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1611","msg":"Connection ended","attr":{"remote":"127.0.0.1:55536","uuid":"b5b6b395-bba8-4b43-bb7d-75e6d5d44b03","connectionId":1611,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:44:22.265+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55540","uuid":"837b55aa-4989-492e-93c4-f2945f33dd88","connectionId":1612,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:22.275+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1612","msg":"Connection ended","attr":{"remote":"127.0.0.1:55540","uuid":"837b55aa-4989-492e-93c4-f2945f33dd88","connectionId":1612,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:44:22.766+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55542","uuid":"ed0c5ad6-4e7f-4a4a-a892-7084a1c3b8b2","connectionId":1613,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:22.776+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1613","msg":"Connection ended","attr":{"remote":"127.0.0.1:55542","uuid":"ed0c5ad6-4e7f-4a4a-a892-7084a1c3b8b2","connectionId":1613,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:44:23.265+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55544","uuid":"e55da0f7-de29-4f79-9bbe-616606642263","connectionId":1614,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:23.276+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1614","msg":"Connection ended","attr":{"remote":"127.0.0.1:55544","uuid":"e55da0f7-de29-4f79-9bbe-616606642263","connectionId":1614,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:44:23.766+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55546","uuid":"2c4eff77-feb9-4291-a2b9-f8af4fd638f7","connectionId":1615,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:23.776+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1615","msg":"Connection ended","attr":{"remote":"127.0.0.1:55546","uuid":"2c4eff77-feb9-4291-a2b9-f8af4fd638f7","connectionId":1615,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:44:24.265+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55548","uuid":"d200a42f-f191-4d70-a31e-b675d0ee9741","connectionId":1616,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:24.275+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1616","msg":"Connection ended","attr":{"remote":"127.0.0.1:55548","uuid":"d200a42f-f191-4d70-a31e-b675d0ee9741","connectionId":1616,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:44:36.766+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55550","uuid":"bb55f2a2-eb52-4480-bd83-f60c1b4945b6","connectionId":1617,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:36.766+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55552","uuid":"a9e7f258-6262-4289-8357-945599d225f2","connectionId":1618,"connectionCount":346}}
{"t":{"$date":"2022-04-07T09:44:36.781+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1617","msg":"Connection ended","attr":{"remote":"127.0.0.1:55550","uuid":"bb55f2a2-eb52-4480-bd83-f60c1b4945b6","connectionId":1617,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:36.781+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1618","msg":"Connection ended","attr":{"remote":"127.0.0.1:55552","uuid":"a9e7f258-6262-4289-8357-945599d225f2","connectionId":1618,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:44:37.266+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55554","uuid":"367f2901-cca2-4aca-9465-9cfb2bbf6785","connectionId":1619,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:37.275+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1619","msg":"Connection ended","attr":{"remote":"127.0.0.1:55554","uuid":"367f2901-cca2-4aca-9465-9cfb2bbf6785","connectionId":1619,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:44:37.766+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55556","uuid":"3dc4b466-5064-4e58-bab3-8ad00a2c878a","connectionId":1620,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:37.777+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1620","msg":"Connection ended","attr":{"remote":"127.0.0.1:55556","uuid":"3dc4b466-5064-4e58-bab3-8ad00a2c878a","connectionId":1620,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:44:38.266+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55558","uuid":"23a5d6eb-7c9b-4979-81a2-982969a8e5a5","connectionId":1621,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:38.277+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1621","msg":"Connection ended","attr":{"remote":"127.0.0.1:55558","uuid":"23a5d6eb-7c9b-4979-81a2-982969a8e5a5","connectionId":1621,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:44:38.767+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55560","uuid":"6fbf7f97-919f-4963-a43b-20a3f1f107e3","connectionId":1622,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:38.777+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1622","msg":"Connection ended","attr":{"remote":"127.0.0.1:55560","uuid":"6fbf7f97-919f-4963-a43b-20a3f1f107e3","connectionId":1622,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:44:39.266+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55562","uuid":"2916a03e-b693-43a9-93e3-735ced3d5088","connectionId":1623,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:39.276+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1623","msg":"Connection ended","attr":{"remote":"127.0.0.1:55562","uuid":"2916a03e-b693-43a9-93e3-735ced3d5088","connectionId":1623,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:44:51.766+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55564","uuid":"09ae77fc-0d26-44d9-ba17-7ee698decd67","connectionId":1624,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:51.767+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55566","uuid":"44222b4d-2a1c-4bb1-a3e7-73c7f66e22af","connectionId":1625,"connectionCount":346}}
{"t":{"$date":"2022-04-07T09:44:51.777+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1625","msg":"Connection ended","attr":{"remote":"127.0.0.1:55566","uuid":"44222b4d-2a1c-4bb1-a3e7-73c7f66e22af","connectionId":1625,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:51.777+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1624","msg":"Connection ended","attr":{"remote":"127.0.0.1:55564","uuid":"09ae77fc-0d26-44d9-ba17-7ee698decd67","connectionId":1624,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:44:52.267+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55568","uuid":"5ce2a50e-d8e6-4667-aa5b-bd344958b91a","connectionId":1626,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:52.277+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1626","msg":"Connection ended","attr":{"remote":"127.0.0.1:55568","uuid":"5ce2a50e-d8e6-4667-aa5b-bd344958b91a","connectionId":1626,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:44:52.766+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55570","uuid":"4cd60f8b-296e-4f09-b7e3-14967b78c40c","connectionId":1627,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:52.778+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1627","msg":"Connection ended","attr":{"remote":"127.0.0.1:55570","uuid":"4cd60f8b-296e-4f09-b7e3-14967b78c40c","connectionId":1627,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:44:53.267+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55572","uuid":"29606858-4902-4288-a7b1-b753f28271e4","connectionId":1628,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:53.277+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1628","msg":"Connection ended","attr":{"remote":"127.0.0.1:55572","uuid":"29606858-4902-4288-a7b1-b753f28271e4","connectionId":1628,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:44:53.767+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55574","uuid":"caed7d75-c257-4779-83c8-6f1b58aab4d5","connectionId":1629,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:53.777+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1629","msg":"Connection ended","attr":{"remote":"127.0.0.1:55574","uuid":"caed7d75-c257-4779-83c8-6f1b58aab4d5","connectionId":1629,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:44:54.267+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55576","uuid":"c2c61cdf-6d5b-4f15-b051-cc29026fb022","connectionId":1630,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:44:54.276+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1630","msg":"Connection ended","attr":{"remote":"127.0.0.1:55576","uuid":"c2c61cdf-6d5b-4f15-b051-cc29026fb022","connectionId":1630,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:45:06.766+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55578","uuid":"0c877b90-1cc6-4b18-9e27-01cc8821d57c","connectionId":1631,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:45:06.766+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55580","uuid":"88a12d48-86ce-4b9c-bb5c-9c3a77b3f4e9","connectionId":1632,"connectionCount":346}}
{"t":{"$date":"2022-04-07T09:45:06.776+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1631","msg":"Connection ended","attr":{"remote":"127.0.0.1:55578","uuid":"0c877b90-1cc6-4b18-9e27-01cc8821d57c","connectionId":1631,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:45:06.778+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1632","msg":"Connection ended","attr":{"remote":"127.0.0.1:55580","uuid":"88a12d48-86ce-4b9c-bb5c-9c3a77b3f4e9","connectionId":1632,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:45:07.266+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55582","uuid":"968c2f0e-5ef8-4967-ab71-a017a165c40d","connectionId":1633,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:45:07.277+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1633","msg":"Connection ended","attr":{"remote":"127.0.0.1:55582","uuid":"968c2f0e-5ef8-4967-ab71-a017a165c40d","connectionId":1633,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:45:07.766+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55584","uuid":"ab47954c-d4c4-487d-a554-309d7bb07f75","connectionId":1634,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:45:07.776+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1634","msg":"Connection ended","attr":{"remote":"127.0.0.1:55584","uuid":"ab47954c-d4c4-487d-a554-309d7bb07f75","connectionId":1634,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:45:08.266+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55586","uuid":"e7b5a901-87d1-4409-9b17-b41dec3ef079","connectionId":1635,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:45:08.275+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1635","msg":"Connection ended","attr":{"remote":"127.0.0.1:55586","uuid":"e7b5a901-87d1-4409-9b17-b41dec3ef079","connectionId":1635,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:45:08.766+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55588","uuid":"a7eb3eb3-67ec-4f44-9540-56c1e4c8a8f6","connectionId":1636,"connectionCount":345}}
{"t":{"$date":"2022-04-07T09:45:08.777+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1636","msg":"Connection ended","attr":{"remote":"127.0.0.1:55588","uuid":"a7eb3eb3-67ec-4f44-9540-56c1e4c8a8f6","connectionId":1636,"connectionCount":344}}
{"t":{"$date":"2022-04-07T09:45:09.266+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:55590","uuid":"853d1b22-de94-4488-9e34-58eae3d3ccce","connectionId":1637,"connectionCount":345}}