[GH-ISSUE #503] Suppress duplicate warnings in log #752

Open
opened 2026-08-05 00:39:49 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @itsalljustdata on GitHub (Oct 11, 2022).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/503

One of my remote servers is having an outage (grrrr)...

Unfortunately, as a side-effect of this i'm getting craploads of duplicate (apart from time) warnings in the /var/log/netbird/client.log. Is there any way of suppressing these repeated messages?

time="2022-10-12T11:17:01+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected"
time="2022-10-12T11:17:41+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected"
time="2022-10-12T11:17:42+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected"
time="2022-10-12T11:18:21+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected"
time="2022-10-12T11:18:23+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected"
time="2022-10-12T11:19:02+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected"
time="2022-10-12T11:19:03+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected"

I know setting the logLevel to "error" (although how do I achieve that?) would suppress them altogether, but a single instance of the message is of value - just not so many!

Originally created by @itsalljustdata on GitHub (Oct 11, 2022). Original GitHub issue: https://github.com/netbirdio/netbird/issues/503 One of my remote servers is having an outage (grrrr)... Unfortunately, as a side-effect of this i'm getting craploads of duplicate (apart from time) warnings in the /var/log/netbird/client.log. Is there any way of suppressing these repeated messages? ``` time="2022-10-12T11:17:01+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected" time="2022-10-12T11:17:41+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected" time="2022-10-12T11:17:42+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected" time="2022-10-12T11:18:21+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected" time="2022-10-12T11:18:23+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected" time="2022-10-12T11:19:02+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected" time="2022-10-12T11:19:03+08:00" level=warning msg="no route was chosen for network 192.168.68.0/22 because no peers from list [85KMByOqsRZBvVOiC6hz4eH90sbcxF67/ZOUIycVXV48PGV=] were connected" ``` I know setting the logLevel to "error" (although how do I achieve that?) would suppress them altogether, but a single instance of the message is of value - just not so many!
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#752